mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
google reader is no more :(
This commit is contained in:
@@ -75,9 +75,9 @@ public class CommaFeedApplication extends AuthenticatedWebApplication {
|
|||||||
mountPage("logout", LogoutPage.class);
|
mountPage("logout", LogoutPage.class);
|
||||||
mountPage("error", DisplayExceptionPage.class);
|
mountPage("error", DisplayExceptionPage.class);
|
||||||
|
|
||||||
mountPage("google/import/redirect", GoogleImportRedirectPage.class);
|
// mountPage("google/import/redirect", GoogleImportRedirectPage.class);
|
||||||
mountPage(GoogleImportCallbackPage.PAGE_PATH,
|
// mountPage(GoogleImportCallbackPage.PAGE_PATH,
|
||||||
GoogleImportCallbackPage.class);
|
// GoogleImportCallbackPage.class);
|
||||||
|
|
||||||
mountPage("next", NextUnreadRedirectPage.class);
|
mountPage("next", NextUnreadRedirectPage.class);
|
||||||
|
|
||||||
|
|||||||
@@ -22,9 +22,6 @@ public class RegistrationRequest implements Serializable {
|
|||||||
@ApiProperty(value = "email address for password recovery", required = true)
|
@ApiProperty(value = "email address for password recovery", required = true)
|
||||||
private String email;
|
private String email;
|
||||||
|
|
||||||
@ApiProperty(value = "not used through the api", required = false)
|
|
||||||
private boolean googleImport = true;
|
|
||||||
|
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
@@ -48,13 +45,4 @@ public class RegistrationRequest implements Serializable {
|
|||||||
public void setEmail(String email) {
|
public void setEmail(String email) {
|
||||||
this.email = email;
|
this.email = email;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isGoogleImport() {
|
|
||||||
return googleImport;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setGoogleImport(boolean googleImport) {
|
|
||||||
this.googleImport = googleImport;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,13 +22,6 @@
|
|||||||
<input type="email" wicket:id="email" class="input-block-level"></input>
|
<input type="email" wicket:id="email" class="input-block-level"></input>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p class="help-block">
|
|
||||||
<label class="checkbox">
|
|
||||||
<input wicket:id="import" type="checkbox" />
|
|
||||||
Google Reader import
|
|
||||||
</label>
|
|
||||||
You'll be able to import later.
|
|
||||||
</p>
|
|
||||||
<div>
|
<div>
|
||||||
<input type="submit" class="btn btn-primary" value="Register" />
|
<input type="submit" class="btn btn-primary" value="Register" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ import javax.inject.Inject;
|
|||||||
import org.apache.wicket.authentication.IAuthenticationStrategy;
|
import org.apache.wicket.authentication.IAuthenticationStrategy;
|
||||||
import org.apache.wicket.extensions.validation.validator.RfcCompliantEmailAddressValidator;
|
import org.apache.wicket.extensions.validation.validator.RfcCompliantEmailAddressValidator;
|
||||||
import org.apache.wicket.feedback.ContainerFeedbackMessageFilter;
|
import org.apache.wicket.feedback.ContainerFeedbackMessageFilter;
|
||||||
import org.apache.wicket.markup.html.form.CheckBox;
|
|
||||||
import org.apache.wicket.markup.html.form.Form;
|
import org.apache.wicket.markup.html.form.Form;
|
||||||
import org.apache.wicket.markup.html.form.PasswordTextField;
|
import org.apache.wicket.markup.html.form.PasswordTextField;
|
||||||
import org.apache.wicket.markup.html.form.RequiredTextField;
|
import org.apache.wicket.markup.html.form.RequiredTextField;
|
||||||
@@ -27,7 +26,6 @@ import com.commafeed.backend.services.ApplicationSettingsService;
|
|||||||
import com.commafeed.backend.services.UserService;
|
import com.commafeed.backend.services.UserService;
|
||||||
import com.commafeed.frontend.CommaFeedSession;
|
import com.commafeed.frontend.CommaFeedSession;
|
||||||
import com.commafeed.frontend.model.request.RegistrationRequest;
|
import com.commafeed.frontend.model.request.RegistrationRequest;
|
||||||
import com.commafeed.frontend.pages.GoogleImportRedirectPage;
|
|
||||||
import com.commafeed.frontend.utils.ModelFactory.MF;
|
import com.commafeed.frontend.utils.ModelFactory.MF;
|
||||||
|
|
||||||
@SuppressWarnings("serial")
|
@SuppressWarnings("serial")
|
||||||
@@ -61,15 +59,8 @@ public class RegisterPanel extends Panel {
|
|||||||
strategy.save(req.getName(), req.getPassword());
|
strategy.save(req.getName(), req.getPassword());
|
||||||
CommaFeedSession.get().signIn(req.getName(),
|
CommaFeedSession.get().signIn(req.getName(),
|
||||||
req.getPassword());
|
req.getPassword());
|
||||||
|
|
||||||
if (req.isGoogleImport()) {
|
|
||||||
setResponsePage(GoogleImportRedirectPage.class);
|
|
||||||
} else {
|
|
||||||
setResponsePage(getApplication().getHomePage());
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
setResponsePage(getApplication().getHomePage());
|
|
||||||
}
|
}
|
||||||
|
setResponsePage(getApplication().getHomePage());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
add(form);
|
add(form);
|
||||||
@@ -111,7 +102,5 @@ public class RegisterPanel extends Panel {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
form.add(new CheckBox("import", MF.m(model, p.isGoogleImport())));
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import.google_reader_prefix=Let me import your feeds from your
|
|||||||
import.google_reader_suffix= account.
|
import.google_reader_suffix= account.
|
||||||
import.google_download=Alternatively, upload your subscriptions.xml file.
|
import.google_download=Alternatively, upload your subscriptions.xml file.
|
||||||
import.google_download_link=Download it from here.
|
import.google_download_link=Download it from here.
|
||||||
import.xml_file=XML File
|
import.xml_file=OPML File
|
||||||
|
|
||||||
new_category.name=Name
|
new_category.name=Name
|
||||||
new_category.parent=Parent
|
new_category.parent=Parent
|
||||||
|
|||||||
@@ -63,15 +63,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<form class="form-horizontal" action="rest/feed/import" method="post" enctype="multipart/form-data">
|
<form class="form-horizontal" action="rest/feed/import" method="post" enctype="multipart/form-data">
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div class="control-group">
|
|
||||||
<div>${import.google_reader_prefix}
|
|
||||||
<a href="google/import/redirect">
|
|
||||||
<img src="images/google_reader_icon.png" class="favicon" />
|
|
||||||
Google Reader
|
|
||||||
</a>${import.google_reader_suffix}
|
|
||||||
</div>
|
|
||||||
<div>${import.google_download} <a target="_blank" href="https://www.google.com/reader/subscriptions/export">${import.google_download_link}</a></div>
|
|
||||||
</div>
|
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label">${import.xml_file}</label>
|
<label class="control-label">${import.xml_file}</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
|
|||||||
Reference in New Issue
Block a user