Skip to content

Commit

Permalink
Merge pull request #144 from cxw42/v01i
Browse files Browse the repository at this point in the history
v0.1.18 deployment
  • Loading branch information
cxw42 authored Sep 17, 2018
2 parents 9144c23 + 9e27301 commit 805c85a
Show file tree
Hide file tree
Showing 84 changed files with 1,277 additions and 1,280 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ DEST_BUNDLE_2 = tabfern/src/view/bundle_tree.js
.PHONY: all bundle clean

all: bundle
./check-version.sh
./check-webstore.sh

bundle: $(DEST_BUNDLE_1) $(DEST_BUNDLE_2)
Expand Down
24 changes: 24 additions & 0 deletions check-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash
# check-version.sh: report version numbers in TabFern
function check() {
ack_opts=( -m 1 --nocolor --nopager --output '$line_no: $line' )
# $filename is also available
echo -n "$1: "
ack "${ack_opts[@]}" VERSION "$1" ||
ack "${ack_opts[@]}" version "$1"
}

files=(package.json package-lock.json)

for tree in tabfern webstore ; do
files+=(${tree}/manifest.json ${tree}/src/common/common.js)
done

for f in "${files[@]}" ; do
check "$f"
done

if [[ $1 = '-e' ]]; then
vi "${files[@]}"
fi
# vi: set ts=4 sts=4 sw=4 et ai: #
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tabfern",
"version": "0.1.17.1337",
"version": "0.1.18.1337",
"description": "Google Chrome extension for displaying, saving, and managing tabs",
"main": "src/view/main.js",
"directories": {
Expand Down
4 changes: 4 additions & 0 deletions tabfern/_locales/de/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@
"message": "Notiz hinzufügen oder bearbeiten"
,"description":"The context-menu item to add or edit a tab's note"
}
, "menuAddEditNoteThisTab": {
"message": "Notiz für den aktuellen Tab hinzufügen oder bearbeiten"
,"description":"The extension-menu item to add or edit the current tab's note"
}
, "menuRename": {
"message": "Umbenennen"
,"description":"The context-menu item to rename a window's tree entry"
Expand Down
24 changes: 24 additions & 0 deletions tabfern/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@
}
}
}
, "dlgpTextToReplace": {
"message": "Text to replace? (/.../ for regex)"
,"description":"Prompt for the user to enter text to replace"
}
, "dlgpReplacementText": {
"message": "Replacement text?"
,"description":"Prompt for the user to enter text to replace"
}

, "dlgYesHTML": {
"message": "<span class=\"accel\">Y</span>es"
Expand Down Expand Up @@ -215,6 +223,10 @@
"message": "Add/edit a note"
,"description":"The context-menu item to add or edit a tab's note"
}
, "menuAddEditNoteThisTab": {
"message": "Add/edit a note for the current tab"
,"description":"The extension-menu item to add or edit the current tab's note"
}
, "menuRename": {
"message": "Rename"
,"description":"The context-menu item to rename a window's tree entry"
Expand Down Expand Up @@ -243,6 +255,18 @@
"message": "Delete"
,"description":"The context-menu item to delete a window or tab's tree item"
}
, "menuURLSubstitute": {
"message": "Replace in URLs"
,"description":"The context-menu item to make a replacement in the URL of each tab in the window"
}
, "menuttURLSubstitute": {
"message": "Make a text replacement in all of the URLs in this window"
,"description":"The context-menu tooltip for menuURLSubstitute"
}
, "menuMoveToTop": {
"message": "Move to top"
,"description":"The context-menu item to move a window's tree item to the top of the tree"
}

, "error_text": { "message": "--------------------------------------------"
,"description": "Text for error messages" }
Expand Down
13 changes: 7 additions & 6 deletions tabfern/assets/css/icons.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@
background-image: url("/assets/icons/text_padding_top.png");
}

.jstree-themeicon-custom.arrow-switch, .vakata-context .arrow-switch {
background-image: url("/assets/icons/arrow_switch.png");
}

/* Class for icons with no content. Used in jstree.set_icon() when the
* icon is actually being set using CSS.
*/
Expand Down Expand Up @@ -91,12 +95,9 @@
content: url("/assets/icons/cross.png");
}

/* Background sizes in context menu are different. TODO fix this --- it is
* an ugly hack. */
.vakata-context .fff-pencil,
.vakata-context .fff-cross,
.vakata-context .fff-picture-delete,
.vakata-context .fff-text-padding-top {
/* Background sizes of icons in context menu are different. Note: Need the
* `li a` to make it specific enough. */
.vakata-context li a i {
background-repeat: no-repeat;
background-position: center center;
}
Expand Down
Binary file added tabfern/assets/icons/arrow_switch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 0 additions & 4 deletions tabfern/conf/require-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ var require = {
exports: 'BLAKE2s'
}
},
async: {
useHash: true // #callback=x rather than ?callback=x since Chrome
// won't load files with ?
},
};

// vi: set ts=4 sts=4 sw=4 et ai fo-=o fo-=r: //
16 changes: 3 additions & 13 deletions tabfern/js/asq-helpers.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,15 @@
// asq-helpers.js: Helpers for asynquence and Chrome callbacks.

(function (root, factory) {
let imports=['asynquence-contrib'];

if (typeof define === 'function' && define.amd) {
// AMD
define('asq-helpers',imports, factory);
define('asq-helpers', ['asynquence-contrib'], factory);
} else if (typeof exports === 'object') {
// Node, CommonJS-like
let requirements = [];
for(let modulename of imports) {
requirements.push(require(modulename));
}
module.exports = factory(...requirements);
module.exports = factory(require('asynquence-contrib'));
} else {
// Browser globals (root is `window`)
let requirements = [];
for(let modulename of imports) {
requirements.push(root[modulename]);
}
root.ASQH = factory(...requirements);
root.ASQH = factory(root.ASQ);
}
}(this, function (ASQ) {
"use strict";
Expand Down
46 changes: 0 additions & 46 deletions tabfern/js/async.js

This file was deleted.

2 changes: 1 addition & 1 deletion tabfern/js/buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2121,4 +2121,4 @@ module.exports = Array.isArray || function (arr) {


/***/ })
/******/ ]);
/******/ ]);
5 changes: 2 additions & 3 deletions tabfern/js/export-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@
module.exports = factory();
} else {
// Browser globals (root is window)
root.Fileops = root.Fileops || {};
root.Fileops.Export = factory();
root.ExportFile = factory();
}
}(this, function ($) {
}(this, function () {

/// Save the given text to the given filename. This is what is returned
/// by the module loader.
Expand Down
3 changes: 1 addition & 2 deletions tabfern/js/import-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
module.exports = factory();
} else {
// Browser globals (root is window)
root.Fileops = root.Fileops || {};
root.Fileops.Importer = factory();
root.ImportFile = factory();
}
}(this, function () {

Expand Down
2 changes: 1 addition & 1 deletion tabfern/js/jstree-multitype.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
else {
factory(jQuery, jQuery.jstree);
}
}(function ($, jstree, undefined) {
}(function ($, _jstree_unused, undefined) {
"use strict";

if($.jstree.plugins.multitype) { return; }
Expand Down
13 changes: 10 additions & 3 deletions tabfern/js/jstree-redraw-event.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,24 @@
if($.jstree.plugins.redraw_event) { return; }

$.jstree.plugins.redraw_event = function (options, parent) {
//this._data.redraw_event = {reason: undefined};
this._data.redraw_event = {suppress: false};

/// Redraw.
/// @param {DOM object} obj The node being redrawn
/// @return the object, if the parent was able to redraw it.
this.redraw_node = function(obj, deep, callback, force_render) {
obj = parent.redraw_node.apply(this, arguments);
this.trigger('redraw_event', {obj: obj});
if(!this._data.redraw_event.suppress) {
obj = parent.redraw_node.apply(this, arguments);
this.trigger('redraw_event', {obj: obj});
}
return obj;
}; //redraw_node

/// Suppress redraw temporarily. EXPERIMENTAL.
this.suppress_redraw = function(whether_to) {
this._data.redraw_event.suppress = !!whether_to;
}

};
}));

Expand Down
4 changes: 2 additions & 2 deletions tabfern/js/justhtmlescape.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/// Adapted from https://github.com/janl/mustache.js/blob/master/mustache.js
/// MIT license --- see end of file

// Defines HTMLEscaper, which has escape(text) and unescape(text) functions.
// Returns { escape(text), unescape(text) }.

(function (root, factory) {
if (typeof define === 'function' && define.amd) {
Expand All @@ -14,7 +14,7 @@
module.exports = factory();
} else {
// Browser globals (root is window)
root.HTMLEscaper = factory();
root.JustHTMLEscape = factory();
}
}(this, function () {

Expand Down
57 changes: 0 additions & 57 deletions tabfern/js/management.js

This file was deleted.

2 changes: 1 addition & 1 deletion tabfern/js/spin-packed.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,4 +292,4 @@ function convertOffset(x, y, degrees) {


/***/ })
/******/ ]);
/******/ ]);
4 changes: 2 additions & 2 deletions tabfern/manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "__MSG_wsLongName__",
"short_name": "__MSG_wsShortName__",
"version": "0.1.17.1337",
"version_name": "0.1.17",
"version": "0.1.18.1337",
"version_name": "0.1.18",
"offline_enabled": true,
"manifest_version": 2,
"minimum_chrome_version": "54",
Expand Down
Loading

0 comments on commit 805c85a

Please sign in to comment.