This commit is contained in:
Alex Yatskov 2017-03-04 19:53:28 -08:00
parent 7269583547
commit e799aa5e5f
12 changed files with 17 additions and 17 deletions

View File

@ -457,17 +457,17 @@ templates['terms.html'] = template({"1":function(container,depth0,helpers,partia
},"13":function(container,depth0,helpers,partials,data) {
var helper, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression;
return " <a href=\"#\" title=\"Add term as expression\" class=\"action-add-note pending disabled\" data-mode=\"term_kanji\" data-index=\""
return " <a href=\"#\" title=\"Add term as expression\" class=\"action-add-note pending disabled\" data-mode=\"term-kanji\" data-index=\""
+ alias4(((helper = (helper = helpers.index || (data && data.index)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"index","hash":{},"data":data}) : helper)))
+ "\"><img src=\"/mixed/img/add_term_kanji.png\"></a>\n <a href=\"#\" title=\"Add term as reading\" class=\"action-add-note pending disabled\" data-mode=\"term_kana\" data-index=\""
+ "\"><img src=\"/mixed/img/add-term-kanji.png\"></a>\n <a href=\"#\" title=\"Add term as reading\" class=\"action-add-note pending disabled\" data-mode=\"term-kana\" data-index=\""
+ alias4(((helper = (helper = helpers.index || (data && data.index)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"index","hash":{},"data":data}) : helper)))
+ "\"><img src=\"/mixed/img/add_term_kana.png\"></a>\n";
+ "\"><img src=\"/mixed/img/add-term-kana.png\"></a>\n";
},"15":function(container,depth0,helpers,partials,data) {
var helper;
return " <a href=\"#\" title=\"Play audio\" class=\"action-play-audio\" data-index=\""
+ container.escapeExpression(((helper = (helper = helpers.index || (data && data.index)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : {},{"name":"index","hash":{},"data":data}) : helper)))
+ "\"><img src=\"/mixed/img/play_audio.png\"></a>\n";
+ "\"><img src=\"/mixed/img/play-audio.png\"></a>\n";
},"17":function(container,depth0,helpers,partials,data) {
var stack1, helper, options, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing, alias3="function", buffer =
" <div class=\"expression\"><ruby>";

View File

@ -31,7 +31,7 @@ class Translator {
}
const promises = [
jsonLoadInt('bg/lang/deinflect.json'),
jsonLoadInt('/bg/lang/deinflect.json'),
this.database.prepare()
];

View File

@ -388,8 +388,8 @@ function dictFieldFormat(field, definition, mode, options) {
definition,
group: options.general.groupResults,
html: options.anki.htmlCards,
modeTermKanji: mode === 'term_kanji',
modeTermKana: mode === 'term_kana',
modeTermKanji: mode === 'term-kanji',
modeTermKana: mode === 'term-kana',
modeKanji: mode === 'kanji'
};

View File

@ -149,7 +149,7 @@ window.yomichan = new class {
onInstalled(details) {
if (details.reason === 'install') {
chrome.tabs.create({url: chrome.extension.getURL('bg/guide.html')});
chrome.tabs.create({url: chrome.extension.getURL('/bg/guide.html')});
}
}

View File

@ -25,7 +25,7 @@ class Popup {
this.container.id = 'yomichan-popup';
this.container.addEventListener('mousedown', e => e.stopPropagation());
this.container.addEventListener('scroll', e => e.stopPropagation());
this.container.setAttribute('src', chrome.extension.getURL('fg/frame.html'));
this.container.setAttribute('src', chrome.extension.getURL('/fg/frame.html'));
document.body.appendChild(this.container);
}

View File

@ -35,10 +35,10 @@
"fg/frame.html",
"fg/js/frame.js",
"mixed/css/frame.css",
"mixed/img/add_kanji.png",
"mixed/img/add_term_kana.png",
"mixed/img/add_term_kanji.png",
"mixed/img/play_audio.png",
"mixed/img/add-kanji.png",
"mixed/img/add-term-kana.png",
"mixed/img/add-term-kanji.png",
"mixed/img/play-audio.png",
"mixed/img/spinner.gif",
"mixed/mp3/button.mp3",
"mixed/ttf/kanji-stroke-orders.ttf",

View File

Before

Width:  |  Height:  |  Size: 733 B

After

Width:  |  Height:  |  Size: 733 B

View File

Before

Width:  |  Height:  |  Size: 286 B

After

Width:  |  Height:  |  Size: 286 B

View File

Before

Width:  |  Height:  |  Size: 733 B

After

Width:  |  Height:  |  Size: 733 B

View File

Before

Width:  |  Height:  |  Size: 610 B

After

Width:  |  Height:  |  Size: 610 B

View File

@ -76,7 +76,7 @@ class Display {
}).catch(this.handleError.bind(this));
});
return this.adderButtonsUpdate(['term_kanji', 'term_kana'], sequence);
return this.adderButtonsUpdate(['term-kanji', 'term-kana'], sequence);
}).catch(this.handleError.bind(this));
}

View File

@ -21,11 +21,11 @@
<p>
<div class="actions">
{{#if addable}}
<a href="#" title="Add term as expression" class="action-add-note pending disabled" data-mode="term_kanji" data-index="{{@index}}"><img src="/mixed/img/add_term_kanji.png"></a>
<a href="#" title="Add term as reading" class="action-add-note pending disabled" data-mode="term_kana" data-index="{{@index}}"><img src="/mixed/img/add_term_kana.png"></a>
<a href="#" title="Add term as expression" class="action-add-note pending disabled" data-mode="term-kanji" data-index="{{@index}}"><img src="/mixed/img/add-term-kanji.png"></a>
<a href="#" title="Add term as reading" class="action-add-note pending disabled" data-mode="term-kana" data-index="{{@index}}"><img src="/mixed/img/add-term-kana.png"></a>
{{/if}}
{{#if playback}}
<a href="#" title="Play audio" class="action-play-audio" data-index="{{@index}}"><img src="/mixed/img/play_audio.png"></a>
<a href="#" title="Play audio" class="action-play-audio" data-index="{{@index}}"><img src="/mixed/img/play-audio.png"></a>
{{/if}}
</div>