Skip to content

Commit

Permalink
register user
Browse files Browse the repository at this point in the history
  • Loading branch information
dorthl committed Aug 9, 2023
1 parent 27b4672 commit c66a888
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
9 changes: 9 additions & 0 deletions src/Blogifier.Shared/Resources/Resource.zh-CN.resx
Original file line number Diff line number Diff line change
Expand Up @@ -513,4 +513,13 @@
<data name="reset" xml:space="preserve">
<value>重置</value>
</data>
<data name="edit-profile" xml:space="preserve">
<value>编辑配置</value>
</data>
<data name="logout" xml:space="preserve">
<value>退出登陆</value>
</data>
<data name="register" xml:space="preserve">
<value>注册</value>
</data>
</root>
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@
<span asp-validation-for="Password"></span>
</div>
<button type="submit" class="btn btn-blogifier btn-block btn-floating">@_localizer["login"]</button>
<a style="margin-top:8px" class="btn btn-default btn-block btn-floating" role="button" href="~/account/register">@_localizer["register"]</a>
</form>
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@
<span class="validation-message" asp-validation-for="PasswordConfirm"></span>
</div>
<button type="submit" class="btn btn-blogifier btn-block btn-floating">@_localizer["register"]</button>
<a style="margin-top:8px" class="btn btn-default btn-block btn-floating" role="button" href="~/account/login">@_localizer["cancel"]</a>
</form>
1 change: 0 additions & 1 deletion src/Blogifier.Themes.Standard/assets/gulpfile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ const watcher = () => {
};

export default series(
clean,
parallel(
scss,
rollupJs,
Expand Down
2 changes: 1 addition & 1 deletion src/Blogifier.Themes.Standard/assets/js/blogifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ hljs.initHighlightingOnLoad();
const form = document.getElementById("newsletter");
const form_email = document.getElementById("newsletter_email");
const form_status = document.getElementById("newsletter_status");
const newsletterSucessMsg = form_status.dataset.success, newsletterErrorMsg = form_status.dataset.error;

// Success, Loading and Error functions
function successNewsletter() {
const newsletterSucessMsg = form_status.dataset.success, newsletterErrorMsg = form_status.dataset.error;
form_status.innerHTML = `<div class="newsletter-msg bg-success"><div class="m-auto"> ${newsletterSucessMsg} </div></div>`;
setTimeout(resetNewsletter, 2000);
}
Expand Down

0 comments on commit c66a888

Please sign in to comment.