[extensions-web] Prettyify template data
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] Prettyify template data
- Date: Mon, 2 Apr 2012 01:43:08 +0000 (UTC)
commit aef7dbbaa019a68893bf545fcc2653a80e07f32d
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sun Apr 1 16:03:19 2012 -0400
Prettyify template data
This should make it easier for git to diff and merge template data.
sweettooth/static/js/templates/build_templates.py | 2 +-
sweettooth/static/js/templates/templatedata.js | 23 ++++++++++++++++++++-
2 files changed, 23 insertions(+), 2 deletions(-)
---
diff --git a/sweettooth/static/js/templates/build_templates.py b/sweettooth/static/js/templates/build_templates.py
index ec04a84..f1d2e1e 100644
--- a/sweettooth/static/js/templates/build_templates.py
+++ b/sweettooth/static/js/templates/build_templates.py
@@ -26,7 +26,7 @@ def build_templates(directory):
"use strict";
define(%s);
-""" % (json.dumps(templates),))
+""" % (json.dumps(templates, sort_keys=True, indent=2),))
f.close()
if __name__ == "__main__":
diff --git a/sweettooth/static/js/templates/templatedata.js b/sweettooth/static/js/templates/templatedata.js
index ec95714..97332f7 100644
--- a/sweettooth/static/js/templates/templatedata.js
+++ b/sweettooth/static/js/templates/templatedata.js
@@ -1,4 +1,25 @@
"use strict";
-define({"paginator": {"loading_page": "<div class=\"loading-page\">\n Loading page... please wait.\n</div>"}, "messages": {"cannot_list_errors": "GNOME Shell Extensions cannot automatically detect any errors.", "cannot_list_local": "GNOME Shell Extensions cannot list your installed extensions.", "dummy_proxy": "You do not appear to have an up to date version of GNOME3. You won't be able to install extensions from here. See the <a href=\"about/#old-version\">about page</a> for more information."}, "upgrade": {"need_upgrade": "You have version {{current_version}} of \"{{extension_name}}\". The latest version is version {{latest_version}}. Click here to upgrade.", "latest_version": "You have the latest version of {{extension_name}}."}, "extensions": {"info": "<div class=\"extension\" data-uuid=\"{{uuid}}\">\n {{>extensions.info_contents}}\n</div>", "error_report_template": "What's wrong?\n\n\n\nWhat have you tried?\n\n\n\nAutomatically detected errors:\n\n{{#errors}}\n {{.}}
\n\n================\n{{/errors}}\n{{^errors}}\nGNOME Shell Extensions did not detect any errors with this extension.\n{{/errors}}\n\nVersion information:\n\n Shell version: {{sv}}\n Extension version: {{#ev}}{{ev}}{{/ev}}{{^ev}}Unknown{{/ev}}", "info_list": "<ul class=\"extensions\">\n{{#extensions}}\n <li class=\"extension\" data-svm=\"{{shell_version_map}}\">\n {{>extensions.info_contents}}\n </li>\n{{/extensions}}\n</ul>", "info_contents": "<div class=\"switch\"></div>\n<img class=\"icon\" src=\"{{icon}}\">\n<h3 class=\"extension-name\">\n {{#link}}\n <a href=\"{{link}}\" class=\"title-link\"> <img src=\"{{icon}}\" class=\"icon\"> {{name}} </a>\n {{/link}}\n {{^link}}\n {{name}}\n {{/link}}\n</h3>\n{{#creator}}\n <span class=\"author\">by <a href=\"{{creator_url}}\"> {{creator}} </a></span>\n{{/creator}}\n{{#want_configure}}\n {{>extensions.configure_button}}\n{{/want_configure}}\n<p class=\"description\">\n {{description}}\n</p>\n{{#want_uninstall}
}\n <button class=\"uninstall\" title=\"Uninstall\">Uninstall</button>\n{{/want_uninstall}}", "configure_button": "<span class=\"launch-prefs-button\">Configure</span>", "uninstall": "You uninstalled <b>{{name}}. <a href=\"#\">Undo?</a>"}});
+define({
+ "extensions": {
+ "configure_button": "<span class=\"launch-prefs-button\">Configure</span>",
+ "error_report_template": "What's wrong?\n\n\n\nWhat have you tried?\n\n\n\nAutomatically detected errors:\n\n{{#errors}}\n {{.}}\n\n================\n{{/errors}}\n{{^errors}}\nGNOME Shell Extensions did not detect any errors with this extension.\n{{/errors}}\n\nVersion information:\n\n Shell version: {{sv}}\n Extension version: {{#ev}}{{ev}}{{/ev}}{{^ev}}Unknown{{/ev}}",
+ "info": "<div class=\"extension\" data-uuid=\"{{uuid}}\">\n {{>extensions.info_contents}}\n</div>",
+ "info_contents": "<div class=\"switch\"></div>\n<img class=\"icon\" src=\"{{icon}}\">\n<h3 class=\"extension-name\">\n {{#link}}\n <a href=\"{{link}}\" class=\"title-link\"> <img src=\"{{icon}}\" class=\"icon\"> {{name}} </a>\n {{/link}}\n {{^link}}\n {{name}}\n {{/link}}\n</h3>\n{{#creator}}\n <span class=\"author\">by <a href=\"{{creator_url}}\"> {{creator}} </a></span>\n{{/creator}}\n{{#want_configure}}\n {{>extensions.configure_button}}\n{{/want_configure}}\n<p class=\"description\">\n {{description}}\n</p>\n{{#want_uninstall}}\n <button class=\"uninstall\" title=\"Uninstall\">Uninstall</button>\n{{/want_uninstall}}",
+ "info_list": "<ul class=\"extensions\">\n{{#extensions}}\n <li class=\"extension\" data-svm=\"{{shell_version_map}}\">\n {{>extensions.info_contents}}\n </li>\n{{/extensions}}\n</ul>",
+ "uninstall": "You uninstalled <b>{{name}}. <a href=\"#\">Undo?</a>"
+ },
+ "messages": {
+ "cannot_list_errors": "GNOME Shell Extensions cannot automatically detect any errors.",
+ "cannot_list_local": "GNOME Shell Extensions cannot list your installed extensions.",
+ "dummy_proxy": "You do not appear to have an up to date version of GNOME3. You won't be able to install extensions from here. See the <a href=\"about/#old-version\">about page</a> for more information."
+ },
+ "paginator": {
+ "loading_page": "<div class=\"loading-page\">\n Loading page... please wait.\n</div>"
+ },
+ "upgrade": {
+ "latest_version": "You have the latest version of {{extension_name}}.",
+ "need_upgrade": "You have version {{current_version}} of \"{{extension_name}}\". The latest version is version {{latest_version}}. Click here to upgrade."
+ }
+});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]