Covnert root_tmpl.coffee.erb to JS

pull/1441/head
Simon Legner 1 year ago
parent 59bc8e27a6
commit 7a7e3155f7

@ -1,8 +1,8 @@
app.templates.splash = """<div class="_splash-title">DevDocs</div>"""
app.templates.splash = "<div class=\"_splash-title\">DevDocs</div>";
<% if App.development? %>
app.templates.intro = """
<div class="_intro"><div class="_intro-message">
app.templates.intro = `\
<div class="_intro"><div class="_intro-message">
<a href="#" class="_intro-hide" data-hide-intro>Stop showing this message</a>
<h2 class="_intro-title">Hi there!</h2>
<p>Thanks for downloading DevDocs. Here are a few things you should know:
@ -21,11 +21,11 @@ app.templates.intro = """
<a href="https://github.com/freeCodeCamp/devdocs/blob/main/LICENSE">LICENSE</a> files.
</ol>
<p>Happy coding!
</div></div>
"""
</div></div>\
`;
<% else %>
app.templates.intro = """
<div class="_intro"><div class="_intro-message">
app.templates.intro = `\
<div class="_intro"><div class="_intro-message">
<a href="#" class="_intro-hide" data-hide-intro>Stop showing this message</a>
<h2 class="_intro-title">Welcome!</h2>
<p>DevDocs combines multiple API documentations in a fast, organized, and searchable interface.
@ -43,12 +43,12 @@ app.templates.intro = """
<li>And if you're new to coding, check out <a href="https://www.freecodecamp.org/">freeCodeCamp's open source curriculum</a>.
</ol>
<p>Happy coding!
</div></div>
"""
</div></div>\
`;
<% end %>
app.templates.mobileIntro = """
<div class="_mobile-intro">
app.templates.mobileIntro = `\
<div class="_mobile-intro">
<h2 class="_intro-title">Welcome!</h2>
<p>DevDocs combines multiple API documentations in a fast, organized, and searchable interface.
Here's what you should know before you start:
@ -61,14 +61,14 @@ app.templates.mobileIntro = """
</ol>
<p>Happy coding!
<a class="_intro-hide" data-hide-intro>Stop showing this message</a>
</div>
"""
</div>\
`;
app.templates.androidWarning = """
<div class="_mobile-intro">
app.templates.androidWarning = `\
<div class="_mobile-intro">
<h2 class="_intro-title">Hi there</h2>
<p>DevDocs is running inside an Android WebView. Some features may not work properly.
<p>If you downloaded an app called DevDocs on the Play Store, please uninstall it — it's made by someone who is using (and profiting from) the name DevDocs without permission.
<p>To install DevDocs on your phone, visit <a href="https://devdocs.io" target="_blank" rel="noopener">devdocs.io</a> in Chrome and select "Add to home screen" in the menu.
</div>
"""
</div>\
`;

Loading…
Cancel
Save