Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* BREAKING CHANGE: UI is now exported interface * feat(ui): new ReSpec pill UI
- Loading branch information
Marcos Cáceres
committed
Oct 12, 2016
1 parent
018dc2b
commit 828aa78
Showing
6 changed files
with
141 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
|
||
// Module ui/about-respec | ||
// A simple about dialogue with pointer to the help | ||
|
||
// A simple about dialog with pointer to the help | ||
"use strict"; | ||
define( | ||
[], | ||
function () { | ||
return { | ||
show: function (ui) { | ||
var $halp = $("<div><p>ReSpec is a document production toolchain, with a notable focus on W3C specifications.</p></div>"); | ||
$("<p>You can find more information in the <a href='https://w3.org/respec/'>documentation</a>.</p>").appendTo($halp); | ||
$("<p>Found a bug in ReSpec? <a href='https://github.com/w3c/respec/issues'>File it!</a>.</p>").appendTo($halp); | ||
ui.freshModal("About ReSpec", $halp); | ||
} | ||
}; | ||
} | ||
["core/ui"], | ||
function(ui) { | ||
// window.respecVersion is added at build time (see tools/builder.js) | ||
window.respecVersion = window.respecVersion || "Developer Edition"; | ||
const $halp = $("<div><p>ReSpec is a document production toolchain, with a notable focus on W3C specifications.</p></div>"); | ||
$("<p>You can find more information in the <a href='https://w3.org/respec/'>documentation</a>.</p>").appendTo($halp); | ||
$("<p>Found a bug in ReSpec? <a href='https://github.com/w3c/respec/issues'>File it!</a>.</p>").appendTo($halp); | ||
ui.addCommand("About ReSpec", "ui/about-respec", "Ctrl+Shift+Alt+A", "ℹ️"); | ||
return { | ||
show: function() { | ||
ui.freshModal("About ReSpec - " + window.respecVersion, $halp); | ||
} | ||
}; | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.