Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into new-tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Avi Kohn committed Jul 13, 2015
2 parents 1597f21 + 8ef4463 commit ed26712
Show file tree
Hide file tree
Showing 127 changed files with 3,840 additions and 827 deletions.
541 changes: 414 additions & 127 deletions app/css/style.css

Large diffs are not rendered by default.

446 changes: 427 additions & 19 deletions app/css/widgets.css

Large diffs are not rendered by default.

Binary file added app/icons/classroom.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/icons/search.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/icons/sitelink.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/icons/stats.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/sitelink_demo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions app/inject/js/classroom.js
@@ -0,0 +1,56 @@
var s = document.createElement("script");

s.textContent = "(" + (function() {
// Ignore eval
/* jshint -W060 */
/* jshint -W061 */

var oEval = window.eval,
oOpen = window.open;

window.eval = function(js) {
if (js == "win.frameElement.src") {
document.write(
"<style>" +
".vCxOb," +
".Mtd4hb," +
".pQCS0d," +
".ubVkr .pxQCIb," +
".mkkSdf.bFjUmb-Wvd9Cc { display: none!important; }" +

".rwnykc { line-height: 4rem!important; }" +

".T97Lje { margin: 1rem .8rem!important; }" +

".jjooHc { padding: 1.3rem!important; }" +

".F0D56 { min-height: 7rem!important; }" +

".T6C1sc .FXKA9c { height: 5.5rem; padding-top: 0; }" +

".CWxdVe.bpmy9c { min-width: 5rem; }" +
"</style>" +
"<xmp style=\"display:none\">"
);

throw "Framebusting busted";
}
else {
return oEval.apply(window, arguments);
}
};

/*jshint +W060 */
/*jshint +W061 */

window.open = function(url, target) {
if (url === window.location && (target == "_top" || target == "_parent")) {
throw "Framebusting busted";
}
else {
return oOpen.apply(window, arguments);
}
};
}).toString() + ")()";

document.documentElement.appendChild(s);
2 changes: 1 addition & 1 deletion app/js/core/render.js
Expand Up @@ -11,7 +11,7 @@ define(["lodash", "hogan", "core/status", "i18n/i18n", "core/templates"], functi

// Partials don't work with precompiled templates
if (!compiled || partials) {
if (raw[template]) {
if (typeof raw[template] !== "undefined") {
try {
compiled = cache[template] = Hogan.compile(raw[template]);
}
Expand Down
8 changes: 6 additions & 2 deletions app/js/core/templates.js
Expand Up @@ -9,7 +9,7 @@ var templates = [
"getting-started", "donate", "translate-request",
"settings", "menu", "settings/new-tab",
"settings/general", "settings/visual", "settings/advanced",
"settings/tab-specific","widget-settings.inputs",
"settings/tab-specific","widget-settings.inputs","settings/debug",

"widgets.weather", "widgets.weather.desc",
"widgets.stocks", "widgets.stocks.desc",
Expand Down Expand Up @@ -47,7 +47,11 @@ var templates = [
"widgets.recentlyclosed", "widgets.recentlyclosed.desc",
"widgets.quotes", "widgets.quotes.desc",
"widgets.html", "widgets.html.desc",
"widgets.notifications", "widgets.notifications.desc"
"widgets.notifications", "widgets.notifications.desc",
"widgets.sitelink", "widgets.sitelink.desc",
"widgets.stats", "widgets.stats.desc",
"widgets.search", "widgets.search.desc",
"widgets.classroom", "widgets.classroom.desc"
],
deps = [];

Expand Down
4 changes: 3 additions & 1 deletion app/js/i18n/locales/bn/main.json
Expand Up @@ -145,7 +145,9 @@
"css":"স্বনির্ধারিত CSS",
"css_desc":"You can use this field to customize almost any visual part of iChrome using CSS (for a definition please see the <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\" target=\"_blank\">MDN<\/a>).<br \/><br \/>Since this will be synced, you can only enter a maximum of 1000 characters, including whitespace.",
"reset":"Reset iChrome",
"reset_confirm":"Are you really sure you want to reset iChrome?\r\nThis will erase all local and synced data, there is no backup and no way to undo this. You will lose your ENTIRE current configuration on all computers signed into this Google account."
"reset_confirm":"Are you really sure you want to reset iChrome?\r\nThis will erase all local and synced data, there is no backup and no way to undo this. You will lose your ENTIRE current configuration on all computers signed into this Google account.",
"debug":"Debug Tools",
"debug_confirm":"WARNING: These tools can erase your configuration in a single click, only use them if your developer instructs you to.\r\nAre you sure you want to continue?"
}
},
"store":{
Expand Down
64 changes: 60 additions & 4 deletions app/js/i18n/locales/bn/widgets.json
Expand Up @@ -95,8 +95,8 @@
"noevents":"It doesn't look like there are any events in the near future.\n<br \/><br \/>\nTry selecting a calendar via the wrench icon in the top right."
},
"clock":{
"name":"সময় ও তারিখ",
"desc":"বর্তমান তারিখ এবং সময় প্রদর্শন করে। বিভিন্ন সময় অঞ্চল জন্য বিকল্পনীয়।",
"name":"ঘড়ি",
"desc":"Offers alarm, time, timer, and stopwatch functionality.",
"settings":{
"timezone":"সময় অঞ্চল",
"timezone_local":"স্থানীয়",
Expand All @@ -107,9 +107,18 @@
"analog":"১২ ঘণ্টা - এনালগ",
"ampmseconds":"পুর্বাহ্ন\/অপরাহ্ন - ডিজিটাল, সেকেন্ডবিহীন",
"24hourseconds":"২৪ ঘণ্টা - ডিজিটাল, সেকেন্ডবিহীন"
}
},
"sound":"Alert Sound"
},
"title":"ঘড়ি"
"title":"ঘড়ি",
"alarm":"Alarm",
"clock":"ঘড়ি",
"timer":"Timer",
"stopwatch":"Stopwatch",
"set":"Set",
"unset":"Unset",
"dismiss":"Dismiss",
"enable_audio":"Enable audio"
},
"currency":{
"name":"মুদ্রা",
Expand Down Expand Up @@ -500,5 +509,52 @@
"js":"JavaScript",
"height":"উইজেটের উচ্চতা"
}
},
"sitelink":{
"name":"Site Link",
"desc":"Displays a link, optionally with a title and thumbnail",
"settings":{
"link":"Link URL",
"link_placeholder":"http:\/\/www.google.com.bd\/",
"image":"চিত্রের URL",
"image_placeholder":"http:\/\/www.example.com\/image.png",
"color":"Image Background Color",
"style":"Image Style",
"style_fill":"Fill",
"style_center":"কেন্দ্রে"
}
},
"stats":{
"name":"System Statistics",
"desc":"Keep an eye on your system with realtime statistics",
"memory":"Memory",
"battery":"Battery",
"usage":"usage",
"in_use":"in use",
"remaining":"remaining",
"charged":"Fully Charged",
"idle":"Idle",
"charging":"Charging",
"discharging":"Discharging"
},
"search":{
"name":"অনুসন্ধান",
"desc":"Embed a search box in your page for easy access",
"settings":{
"placeholder":"Search Field Placeholder",
"search_url":"URL অনুসন্ধান",
"param":"Query Parameter",
"param_placeholder":"The parameter where the query goes, i.e. \"q\""
},
"default_placeholder":"Search Google"
},
"classroom":{
"name":"Classroom",
"desc":"Keep up to date with your Google Classroom assignments and classes",
"settings":{
"mode":"Widget Mode",
"mode_teacher":"Teacher",
"mode_student":"Student"
}
}
}
4 changes: 3 additions & 1 deletion app/js/i18n/locales/ca/main.json
Expand Up @@ -145,7 +145,9 @@
"css":"Custom CSS",
"css_desc":"You can use this field to customize almost any visual part of iChrome using CSS (for a definition please see the <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\" target=\"_blank\">MDN<\/a>).<br \/><br \/>Since this will be synced, you can only enter a maximum of 1000 characters, including whitespace.",
"reset":"Reset iChrome",
"reset_confirm":"Are you really sure you want to reset iChrome?\r\nThis will erase all local and synced data, there is no backup and no way to undo this. You will lose your ENTIRE current configuration on all computers signed into this Google account."
"reset_confirm":"Are you really sure you want to reset iChrome?\r\nThis will erase all local and synced data, there is no backup and no way to undo this. You will lose your ENTIRE current configuration on all computers signed into this Google account.",
"debug":"Debug Tools",
"debug_confirm":"WARNING: These tools can erase your configuration in a single click, only use them if your developer instructs you to.\r\nAre you sure you want to continue?"
}
},
"store":{
Expand Down
64 changes: 60 additions & 4 deletions app/js/i18n/locales/ca/widgets.json
Expand Up @@ -95,8 +95,8 @@
"noevents":"It doesn't look like there are any events in the near future.\n<br \/><br \/>\nTry selecting a calendar via the wrench icon in the top right."
},
"clock":{
"name":"Time & Date",
"desc":"Shows the current date and time. Optionally for a different timezone.",
"name":"Clock",
"desc":"Offers alarm, time, timer, and stopwatch functionality.",
"settings":{
"timezone":"Time Zone",
"timezone_local":"Local",
Expand All @@ -107,9 +107,18 @@
"analog":"12 Hour - Analog",
"ampmseconds":"AM\/PM - Digital, No Seconds",
"24hourseconds":"24 Hour - Digital, No Seconds"
}
},
"sound":"Alert Sound"
},
"title":"Clock"
"title":"Clock",
"alarm":"Alarm",
"clock":"Clock",
"timer":"Timer",
"stopwatch":"Stopwatch",
"set":"Set",
"unset":"Unset",
"dismiss":"Dismiss",
"enable_audio":"Enable audio"
},
"currency":{
"name":"Currency",
Expand Down Expand Up @@ -500,5 +509,52 @@
"js":"JavaScript",
"height":"Widget Height"
}
},
"sitelink":{
"name":"Site Link",
"desc":"Displays a link, optionally with a title and thumbnail",
"settings":{
"link":"Link URL",
"link_placeholder":"http:\/\/www.google.com\/",
"image":"Image URL",
"image_placeholder":"http:\/\/www.example.com\/image.png",
"color":"Image Background Color",
"style":"Image Style",
"style_fill":"Fill",
"style_center":"Center"
}
},
"stats":{
"name":"System Statistics",
"desc":"Keep an eye on your system with realtime statistics",
"memory":"Memory",
"battery":"Battery",
"usage":"usage",
"in_use":"in use",
"remaining":"remaining",
"charged":"Fully Charged",
"idle":"Idle",
"charging":"Charging",
"discharging":"Discharging"
},
"search":{
"name":"Search",
"desc":"Embed a search box in your page for easy access",
"settings":{
"placeholder":"Search Field Placeholder",
"search_url":"Search URL",
"param":"Query Parameter",
"param_placeholder":"The parameter where the query goes, i.e. \"q\""
},
"default_placeholder":"Search Google"
},
"classroom":{
"name":"Classroom",
"desc":"Keep up to date with your Google Classroom assignments and classes",
"settings":{
"mode":"Widget Mode",
"mode_teacher":"Teacher",
"mode_student":"Student"
}
}
}
16 changes: 8 additions & 8 deletions app/js/i18n/locales/cs/description.json
Expand Up @@ -4,24 +4,24 @@
"link":"Jeslti hledáš doplněk pouze pro novou záložku a nikoli domovskou stránku, koukni na náš iChrome New Tab doplněk zde: https:\/\/chrome.google.com\/webstore\/detail\/ichrome-new-tab\/iccjgbbjckehppnpajnmplcccjcgbdep",
"newtab_line_1":"iChrome je doplněk nahrazující domovskou stránku a má za cíl vytvořit takovou domovskou stránku, jakou si představuješ = rychlou, customizovatelnou, hezkou a podporující produktivitu ",
"newtab_link":"Jeslti hledáš doplněk pouze pro novou záložku a nikoli domovskou stránku, koukni na náš iChrome New Tab doplněk zde: https:\/\/chrome.google.com\/webstore\/detail\/ichrome-your-homepage-for\/oghkljobbhapacbahlneolfclkniiami",
"line_2":"Vytvořte si VLASTNÍ úvodní stránku s více než 30 widgety a desítky ohromujících témat. Mimo tyto iChrome obsahuje další stovky vylepšení:",
"line_2":"Vytvořte si VLASTNÍ úvodní stránku s více než 30 widgety a desítky ohromujících témat. Mimo tyto iChrome obsahuje mnoho dalších vylepšení:",
"features":[
"Desítky krásných tapet a témat, včetně těch z Bing a z Webshots ty nejlepší fotky každý den",
"Kompletní synchronizace mezi počítači, včetně seznamu úkolů, poznámek a vlastních témat",
"Více možností rozložení, s možností 1-5 pevných či variabilních šířek sloupců (nebo je přeskočte a použíjte mřížku!)",
"Více možností rozložení, s možností 1-5 pevných či nastavitelných šířek sloupců (nebo je přeskočte a použijte mřížku!)",
"Správné informace ve správný čas s integrací Chytrých karet Google",
"Plně integrované hlasové vyhledávání a včetně \"OK Google\" detekce",
"Celosvětové zprávy o počasí v reálném čase, včetně předpovědí s Weather widgetem",
"Plně integrované hlasové vyhledávání s možností \"OK Google\" detekce",
"Celosvětové zprávy o počasí v reálném čase, včetně předpovědí s widgetem Počasí",
"Jednoduchá instalace a přeuspořádání widgetů pouhým přetažením",
"Sleduj vývoj akcií v realném čase pomocí tohoto jednoduchého widgetu",
"Získejte novinky pro konkrétní vydání a téma, nebo použíjte vlastní RSS kanál",
"Jednoduše přístupujte ke všem svým Chrome aplikacím s widgetem aplikace",
"Sledujte váše nejnavštěvovanější webové stránky a nedávno zavřené panely v jednoduchých widgetech",
"Pohybujte se mezi přizpůsobitelnými kartami, kde každá má své vlastní téma a widgety, pomocí klávesnice",
"Sledujte vaše nejnavštěvovanější webové stránky a nedávno zavřené panely v jednoduchých widgetech",
"Pohybujte se mezi přizpůsobitelnými kartami, kde každá má své vlastní motiv a widgety, pomocí klávesnice",
"Sledujte nejnovější obsah na YouTube nebo Reddit díky plně podporovaným widgetům",
"Pracuje zcela v režimu offline, kdykoli, všechno (i vaše téma) je připraveno vždy!"
"Pracuje zcela v režimu offline, kdykoli, všechno (i váš motiv) je připraveno vždy!"
],
"line_3":"iChrome je open source projekt, podívejte se na Github: https:\/\/github.com\/AMKohn\/iChrome",
"line_4":"Zpětná vazba a návrhy jsou vždy vítány, na: http:\/\/ichrome.uservoice.com",
"line_5":"Jste otrávení z rozšíření domovských stránkek, která Vás nenchají je upravovat? Otrávení z reklamy? Stále hledáte náhradu za iGoogle? Hledáte krásnou úvodní stránku, která se stále zlepšuje? iChrome je pro vás!"
"line_5":"Jste otrávení z rozšíření domovských stránek, která Vás nenechají je upravovat? Otrávení z reklamy? Stále hledáte náhradu za iGoogle? Hledáte krásnou úvodní stránku, která se stále zlepšuje? iChrome je pro vás!"
}

0 comments on commit ed26712

Please sign in to comment.