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? %> <% if App.development? %>
app.templates.intro = """ app.templates.intro = `\
<div class="_intro"><div class="_intro-message"> <div class="_intro"><div class="_intro-message">
<a href="#" class="_intro-hide" data-hide-intro>Stop showing this message</a> <a href="#" class="_intro-hide" data-hide-intro>Stop showing this message</a>
<h2 class="_intro-title">Hi there!</h2> <h2 class="_intro-title">Hi there!</h2>
<p>Thanks for downloading DevDocs. Here are a few things you should know: <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. <a href="https://github.com/freeCodeCamp/devdocs/blob/main/LICENSE">LICENSE</a> files.
</ol> </ol>
<p>Happy coding! <p>Happy coding!
</div></div> </div></div>\
""" `;
<% else %> <% else %>
app.templates.intro = """ app.templates.intro = `\
<div class="_intro"><div class="_intro-message"> <div class="_intro"><div class="_intro-message">
<a href="#" class="_intro-hide" data-hide-intro>Stop showing this message</a> <a href="#" class="_intro-hide" data-hide-intro>Stop showing this message</a>
<h2 class="_intro-title">Welcome!</h2> <h2 class="_intro-title">Welcome!</h2>
<p>DevDocs combines multiple API documentations in a fast, organized, and searchable interface. <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>. <li>And if you're new to coding, check out <a href="https://www.freecodecamp.org/">freeCodeCamp's open source curriculum</a>.
</ol> </ol>
<p>Happy coding! <p>Happy coding!
</div></div> </div></div>\
""" `;
<% end %> <% end %>
app.templates.mobileIntro = """ app.templates.mobileIntro = `\
<div class="_mobile-intro"> <div class="_mobile-intro">
<h2 class="_intro-title">Welcome!</h2> <h2 class="_intro-title">Welcome!</h2>
<p>DevDocs combines multiple API documentations in a fast, organized, and searchable interface. <p>DevDocs combines multiple API documentations in a fast, organized, and searchable interface.
Here's what you should know before you start: Here's what you should know before you start:
@ -61,14 +61,14 @@ app.templates.mobileIntro = """
</ol> </ol>
<p>Happy coding! <p>Happy coding!
<a class="_intro-hide" data-hide-intro>Stop showing this message</a> <a class="_intro-hide" data-hide-intro>Stop showing this message</a>
</div> </div>\
""" `;
app.templates.androidWarning = """ app.templates.androidWarning = `\
<div class="_mobile-intro"> <div class="_mobile-intro">
<h2 class="_intro-title">Hi there</h2> <h2 class="_intro-title">Hi there</h2>
<p>DevDocs is running inside an Android WebView. Some features may not work properly. <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>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. <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