1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-18 03:19:55 +00:00

Rename "tw-tiddlylink-*" classes to "tc-tiddlylink-*"

Part of #764
This commit is contained in:
Jermolene 2014-08-28 18:13:46 +01:00
parent a7dfa954d1
commit 4a1c530da7
12 changed files with 42 additions and 42 deletions

View File

@ -1,3 +1,3 @@
<h1 class=''>Contributing to <a class='tw-tiddlylink tw-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a></h1><p><a class='tw-tiddlylink tw-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a> welcomes contributions to its code and documentation via <a class='tw-tiddlylink-external' href='https://github.com/Jermolene/TiddlyWiki5' target='_blank'>GitHub</a>. Please take a moment to read these notes to help make the process as smooth as possible.</p><h2 class=''>Coding Style</h2><p>Code contributions should follow the <a class='tw-tiddlylink tw-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki%2520Coding%2520Style%2520Guidelines.html'>TiddlyWiki Coding Style Guidelines</a>.</p><h2 class=''><a class='tw-tiddlylink tw-tiddlylink-missing' href='http://tiddlywiki.com/static/GitHub.html'>GitHub</a> Issues</h2><p>See <a class='tw-tiddlylink tw-tiddlylink-resolves' href='http://tiddlywiki.com/static/ReportingBugs.html'>ReportingBugs</a> for information about how <a class='tw-tiddlylink tw-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> handles bug reports.</p><h2 class=''>Contributor License Agreement</h2><p>Like other <a class='tw-tiddlylink tw-tiddlylink-resolves' href='http://tiddlywiki.com/static/OpenSource.html'>OpenSource</a> projects, <a class='tw-tiddlylink tw-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a> needs a signed contributor license agreement from individual contributors. This is a legal agreement that allows contributors to assert that they own the copyright of their contribution, and that they agree to license it to the <a class='tw-tiddlylink tw-tiddlylink-missing' href='http://tiddlywiki.com/static/UnaMesa.html'>UnaMesa</a> Association (the legal entity that owns <a class='tw-tiddlylink tw-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> on behalf of the community).</p><ul><li>For individuals use: <a class='tw-tiddlylink-external' href='https://github.com/Jermolene/TiddlyWiki5/tree/master/licenses/cla-individual.md' target='_blank'>licenses/CLA-individual</a></li><li>For entities use: <a class='tw-tiddlylink-external' href='https://github.com/Jermolene/TiddlyWiki5/tree/master/licenses/cla-entity.md' target='_blank'>licenses/CLA-entity</a></li></ul><p><em>This is a first pass at a CLA for <a class='tw-tiddlylink tw-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a>. Please let us know if we missed something important. If we do have to make essential changes to the CLA, there is a possibility that all contributors will need to sign it again</em></p><h3 class=''>How to sign the CLA</h3><p>Create a <a class='tw-tiddlylink tw-tiddlylink-missing' href='http://tiddlywiki.com/static/GitHub.html'>GitHub</a> pull request to add your name to <code>cla-individual.md</code> or <code>cla-entity.md</code>, with the date in the format (YYYY/MM/DD).</p><p>eg: <code>Jeremy Ruston, @Jermolene, 2011/11/22</code></p><p><strong>Thank you!</strong></p><h4 class=''>Attribution</h4><p>The CLA documents used for this project were created using <a class='tw-tiddlylink-external' href='http://www.harmonyagreements.org' target='_blank'>Harmony Project Templates</a>. &quot;HA-CLA-I-LIST Version 1.0&quot; for &quot;CLA-individual&quot; and &quot;HA-CLA-E-LIST Version 1.0&quot; for &quot;CLA-entity&quot; <h1 class=''>Contributing to <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a></h1><p><a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a> welcomes contributions to its code and documentation via <a class='tc-tiddlylink-external' href='https://github.com/Jermolene/TiddlyWiki5' target='_blank'>GitHub</a>. Please take a moment to read these notes to help make the process as smooth as possible.</p><h2 class=''>Coding Style</h2><p>Code contributions should follow the <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki%2520Coding%2520Style%2520Guidelines.html'>TiddlyWiki Coding Style Guidelines</a>.</p><h2 class=''><a class='tc-tiddlylink tc-tiddlylink-missing' href='http://tiddlywiki.com/static/GitHub.html'>GitHub</a> Issues</h2><p>See <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/ReportingBugs.html'>ReportingBugs</a> for information about how <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> handles bug reports.</p><h2 class=''>Contributor License Agreement</h2><p>Like other <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/OpenSource.html'>OpenSource</a> projects, <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a> needs a signed contributor license agreement from individual contributors. This is a legal agreement that allows contributors to assert that they own the copyright of their contribution, and that they agree to license it to the <a class='tc-tiddlylink tc-tiddlylink-missing' href='http://tiddlywiki.com/static/UnaMesa.html'>UnaMesa</a> Association (the legal entity that owns <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> on behalf of the community).</p><ul><li>For individuals use: <a class='tc-tiddlylink-external' href='https://github.com/Jermolene/TiddlyWiki5/tree/master/licenses/cla-individual.md' target='_blank'>licenses/CLA-individual</a></li><li>For entities use: <a class='tc-tiddlylink-external' href='https://github.com/Jermolene/TiddlyWiki5/tree/master/licenses/cla-entity.md' target='_blank'>licenses/CLA-entity</a></li></ul><p><em>This is a first pass at a CLA for <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a>. Please let us know if we missed something important. If we do have to make essential changes to the CLA, there is a possibility that all contributors will need to sign it again</em></p><h3 class=''>How to sign the CLA</h3><p>Create a <a class='tc-tiddlylink tc-tiddlylink-missing' href='http://tiddlywiki.com/static/GitHub.html'>GitHub</a> pull request to add your name to <code>cla-individual.md</code> or <code>cla-entity.md</code>, with the date in the format (YYYY/MM/DD).</p><p>eg: <code>Jeremy Ruston, @Jermolene, 2011/11/22</code></p><p><strong>Thank you!</strong></p><h4 class=''>Attribution</h4><p>The CLA documents used for this project were created using <a class='tc-tiddlylink-external' href='http://www.harmonyagreements.org' target='_blank'>Harmony Project Templates</a>. &quot;HA-CLA-I-LIST Version 1.0&quot; for &quot;CLA-individual&quot; and &quot;HA-CLA-E-LIST Version 1.0&quot; for &quot;CLA-entity&quot;
</p><p><em>This file was automatically generated by <a class='tw-tiddlylink tw-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a></em> </p><p><em>This file was automatically generated by <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a></em>
</p> </p>

View File

@ -41,7 +41,7 @@ exports.parse = function() {
tag: "a", tag: "a",
attributes: { attributes: {
href: {type: "string", value: this.match[0]}, href: {type: "string", value: this.match[0]},
"class": {type: "string", value: "tw-tiddlylink-external"}, "class": {type: "string", value: "tc-tiddlylink-external"},
target: {type: "string", value: "_blank"} target: {type: "string", value: "_blank"}
}, },
children: [{ children: [{

View File

@ -73,7 +73,7 @@ exports.parseLink = function(source,pos) {
tag: "a", tag: "a",
start: pos, start: pos,
attributes: { attributes: {
"class": {type: "string", value: "tw-tiddlylink-external"}, "class": {type: "string", value: "tc-tiddlylink-external"},
}, },
children: [textNode] children: [textNode]
}; };

View File

@ -44,7 +44,7 @@ exports.parse = function() {
tag: "a", tag: "a",
attributes: { attributes: {
href: {type: "string", value: link}, href: {type: "string", value: link},
"class": {type: "string", value: "tw-tiddlylink-external"}, "class": {type: "string", value: "tc-tiddlylink-external"},
target: {type: "string", value: "_blank"} target: {type: "string", value: "_blank"}
}, },
children: [{ children: [{

View File

@ -60,15 +60,15 @@ LinkWidget.prototype.renderLink = function(parent,nextSibling) {
if(this.linkClasses) { if(this.linkClasses) {
classes.push(this.linkClasses); classes.push(this.linkClasses);
} }
classes.push("tw-tiddlylink"); classes.push("tc-tiddlylink");
if(this.isShadow) { if(this.isShadow) {
classes.push("tw-tiddlylink-shadow"); classes.push("tc-tiddlylink-shadow");
} }
if(this.isMissing && !this.isShadow) { if(this.isMissing && !this.isShadow) {
classes.push("tw-tiddlylink-missing"); classes.push("tc-tiddlylink-missing");
} else { } else {
if(!this.isMissing) { if(!this.isMissing) {
classes.push("tw-tiddlylink-resolves"); classes.push("tc-tiddlylink-resolves");
} }
} }
domNode.setAttribute("class",classes.join(" ")); domNode.setAttribute("class",classes.join(" "));
@ -126,7 +126,7 @@ LinkWidget.prototype.handleClickEvent = function (event) {
LinkWidget.prototype.handleDragStartEvent = function(event) { LinkWidget.prototype.handleDragStartEvent = function(event) {
if(this.to) { if(this.to) {
// Set the dragging class on the element being dragged // Set the dragging class on the element being dragged
$tw.utils.addClass(event.target,"tw-tiddlylink-dragging"); $tw.utils.addClass(event.target,"tc-tiddlylink-dragging");
// Create the drag image elements // Create the drag image elements
this.dragImage = this.document.createElement("div"); this.dragImage = this.document.createElement("div");
this.dragImage.className = "tw-tiddler-dragger"; this.dragImage.className = "tw-tiddler-dragger";
@ -170,7 +170,7 @@ LinkWidget.prototype.handleDragStartEvent = function(event) {
LinkWidget.prototype.handleDragEndEvent = function(event) { LinkWidget.prototype.handleDragEndEvent = function(event) {
// Remove the dragging class on the element being dragged // Remove the dragging class on the element being dragged
$tw.utils.removeClass(event.target,"tw-tiddlylink-dragging"); $tw.utils.removeClass(event.target,"tc-tiddlylink-dragging");
// Delete the drag image element // Delete the drag image element
if(this.dragImage) { if(this.dragImage) {
this.dragImage.parentNode.removeChild(this.dragImage); this.dragImage.parentNode.removeChild(this.dragImage);

View File

@ -43,7 +43,7 @@ describe("WikiText tests", function() {
expect(wiki.renderTiddler("text/html","TiddlerThree")).toBe("<p>The speed of sound</p><p>The light of speed</p>"); expect(wiki.renderTiddler("text/html","TiddlerThree")).toBe("<p>The speed of sound</p><p>The light of speed</p>");
}); });
it("should support attributes specified as macro invocations", function() { it("should support attributes specified as macro invocations", function() {
expect(wiki.renderTiddler("text/html","TiddlerFour")).toBe("<p><a class='tw-tiddlylink tw-tiddlylink-missing' href='#This%20is%20my%20''amazingly''%20groovy%20macro!'>This is a link</a></p>"); expect(wiki.renderTiddler("text/html","TiddlerFour")).toBe("<p><a class='tc-tiddlylink tc-tiddlylink-missing' href='#This%20is%20my%20''amazingly''%20groovy%20macro!'>This is a link</a></p>");
}); });
it("should identify wikiwords to automatically link", function() { it("should identify wikiwords to automatically link", function() {
expect(wiki.renderText("text/html","text/vnd-tiddlywiki","No wikilinks here").indexOf("<a") !== -1).toBe(false); expect(wiki.renderText("text/html","text/vnd-tiddlywiki","No wikilinks here").indexOf("<a") !== -1).toBe(false);

View File

@ -7,7 +7,7 @@ https://github.com/Jermolene/TiddlyWiki5/edit/master/editions/tw5.com/tiddlers/$
\end \end
\define innerMakeGitHubLink(linkText) \define innerMakeGitHubLink(linkText)
<$set name="githubLink" value={{$:/config/OriginalTiddlerPaths##$(draftOfTiddler)$}}> <$set name="githubLink" value={{$:/config/OriginalTiddlerPaths##$(draftOfTiddler)$}}>
<a href=<<makeGitHubLink>> class="tw-tiddlylink-external" target="_blank">$linkText$</a> <a href=<<makeGitHubLink>> class="tc-tiddlylink-external" target="_blank">$linkText$</a>
</$set> </$set>
\end \end
\define outerMakeGitHubLink(linkText) \define outerMakeGitHubLink(linkText)

View File

@ -13,7 +13,7 @@ https://github.com/Jermolene/TiddlyWiki5/blob/master/editions/tw5.com/tiddlers/$
\end \end
\define outerMakeGitHubLink() \define outerMakeGitHubLink()
<$set name="githubLink" value={{$:/config/OriginalTiddlerPaths##$(currentTiddler)$}}> <$set name="githubLink" value={{$:/config/OriginalTiddlerPaths##$(currentTiddler)$}}>
<a href=<<makeGitHubLink>> class="tw-tiddlylink-external" target="_blank"><$text text=<<makeGitHubLink>>/></a> <a href=<<makeGitHubLink>> class="tc-tiddlylink-external" target="_blank"><$text text=<<makeGitHubLink>>/></a>
</$set> </$set>
\end \end
A static HTML representation of this tiddler is available at the URL: A static HTML representation of this tiddler is available at the URL:

View File

@ -50,11 +50,11 @@ This causes the tooltip to be the ''tooltip'' field of the target tiddler. If th
! CSS Classes ! CSS Classes
* `tw-tiddlylink` - applied to all links * `tc-tiddlylink` - applied to all links
* `tw-tiddlylink-external` - applied to external, non-tiddler links * `tc-tiddlylink-external` - applied to external, non-tiddler links
* `tw-tiddlylink-internal` - applied to tiddler links * `tc-tiddlylink-internal` - applied to tiddler links
* `tw-tiddlylink-missing` - applied to tiddler links where the target tiddler doesn't exist * `tc-tiddlylink-missing` - applied to tiddler links where the target tiddler doesn't exist
* `tw-tiddlylink-resolves` - applied to tiddler links when the target tiddler does exist * `tc-tiddlylink-resolves` - applied to tiddler links when the target tiddler does exist
! Configuration macros ! Configuration macros

View File

@ -29,8 +29,8 @@ tags: [[$:/tags/stylesheet]]
pointer-events: auto; pointer-events: auto;
} }
.github-fork-ribbon a, .github-fork-ribbon a.tw-tiddlylink, .github-fork-ribbon a, .github-fork-ribbon a.tc-tiddlylink,
.github-fork-ribbon a:hover, .github-fork-ribbon a.tw-tiddlylink:hover { .github-fork-ribbon a:hover, .github-fork-ribbon a.tc-tiddlylink:hover {
/* Set the font */ /* Set the font */
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 13px; font-size: 13px;

File diff suppressed because one or more lines are too long

View File

@ -139,52 +139,52 @@ table tfoot tr td {
** Links ** Links
*/ */
a.tw-tiddlylink { a.tc-tiddlylink {
text-decoration: none; text-decoration: none;
font-weight: normal; font-weight: normal;
color: <<colour tiddler-link-foreground>>; color: <<colour tiddler-link-foreground>>;
-webkit-user-select: inherit; /* Otherwise the draggable attribute makes links impossible to select */ -webkit-user-select: inherit; /* Otherwise the draggable attribute makes links impossible to select */
} }
.tw-sidebar-lists a.tw-tiddlylink { .tw-sidebar-lists a.tc-tiddlylink {
color: <<colour sidebar-tiddler-link-foreground>>; color: <<colour sidebar-tiddler-link-foreground>>;
} }
.tw-sidebar-lists a.tw-tiddlylink:hover { .tw-sidebar-lists a.tc-tiddlylink:hover {
color: <<colour sidebar-tiddler-link-foreground-hover>>; color: <<colour sidebar-tiddler-link-foreground-hover>>;
} }
a.tw-tiddlylink:hover { a.tc-tiddlylink:hover {
text-decoration: underline; text-decoration: underline;
} }
a.tw-tiddlylink-resolves { a.tc-tiddlylink-resolves {
} }
a.tw-tiddlylink-shadow { a.tc-tiddlylink-shadow {
font-weight: bold; font-weight: bold;
} }
a.tw-tiddlylink-shadow.tw-tiddlylink-resolves { a.tc-tiddlylink-shadow.tc-tiddlylink-resolves {
font-weight: normal; font-weight: normal;
} }
a.tw-tiddlylink-missing { a.tc-tiddlylink-missing {
font-style: italic; font-style: italic;
} }
a.tw-tiddlylink-external { a.tc-tiddlylink-external {
text-decoration: underline; text-decoration: underline;
color: <<colour external-link-foreground>>; color: <<colour external-link-foreground>>;
background-color: <<colour external-link-background>>; background-color: <<colour external-link-background>>;
} }
a.tw-tiddlylink-external:visited { a.tc-tiddlylink-external:visited {
color: <<colour external-link-foreground-visited>>; color: <<colour external-link-foreground-visited>>;
background-color: <<colour external-link-background-visited>>; background-color: <<colour external-link-background-visited>>;
} }
a.tw-tiddlylink-external:hover { a.tc-tiddlylink-external:hover {
color: <<colour external-link-foreground-hover>>; color: <<colour external-link-foreground-hover>>;
background-color: <<colour external-link-background-hover>>; background-color: <<colour external-link-background-hover>>;
} }
@ -376,7 +376,7 @@ button.tw-tag-label, span.tw-tag-label {
fill: <<colour sidebar-foreground>>; fill: <<colour sidebar-foreground>>;
} }
.tc-sidebar-header .tc-title a.tw-tiddlylink-resolves { .tc-sidebar-header .tc-title a.tc-tiddlylink-resolves {
font-weight: 300; font-weight: 300;
} }
@ -410,7 +410,7 @@ button.tw-tag-label, span.tw-tag-label {
margin-right: 0.5em; margin-right: 0.5em;
} }
.tw-page-controls a.tw-tiddlylink:hover { .tw-page-controls a.tc-tiddlylink:hover {
text-decoration: none; text-decoration: none;
} }
@ -657,7 +657,7 @@ button.tw-tag-label, span.tw-tag-label {
margin-top: 14px; margin-top: 14px;
} }
.tw-tiddler-help a.tw-tiddlylink { .tw-tiddler-help a.tc-tiddlylink {
color: <<colour very-muted-foreground>>; color: <<colour very-muted-foreground>>;
} }
@ -750,7 +750,7 @@ canvas.tw-edit-bitmapeditor {
font-style: normal; font-style: normal;
} }
.tw-edit-type-dropdown a.tw-tiddlylink-missing { .tw-edit-type-dropdown a.tc-tiddlylink-missing {
font-style: normal; font-style: normal;
} }
@ -1266,7 +1266,7 @@ canvas.tw-edit-bitmapeditor {
background: repeating-linear-gradient(45deg, #aa0, #aa0 10px, #888 10px, #888 20px); background: repeating-linear-gradient(45deg, #aa0, #aa0 10px, #888 10px, #888 20px);
} }
a.tw-tiddlylink.tw-plugin-info:hover { a.tc-tiddlylink.tw-plugin-info:hover {
text-decoration: none; text-decoration: none;
background-color: <<colour primary>>; background-color: <<colour primary>>;
color: <<colour background>>; color: <<colour background>>;
@ -1323,7 +1323,7 @@ a.tw-tiddlylink.tw-plugin-info:hover {
border: 8px; border: 8px;
} }
.tw-chooser-item a.tw-tiddlylink { .tw-chooser-item a.tc-tiddlylink {
display: block; display: block;
text-decoration: none; text-decoration: none;
color: <<colour tiddler-link-foreground>>; color: <<colour tiddler-link-foreground>>;
@ -1331,7 +1331,7 @@ a.tw-tiddlylink.tw-plugin-info:hover {
margin: 4px; margin: 4px;
} }
.tw-chooser-item a.tw-tiddlylink:hover { .tw-chooser-item a.tc-tiddlylink:hover {
text-decoration: none; text-decoration: none;
color: <<colour tiddler-link-background>>; color: <<colour tiddler-link-background>>;
background-color: <<colour tiddler-link-foreground>>; background-color: <<colour tiddler-link-foreground>>;