Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
hawaiianchimp committed Oct 16, 2014
0 parents commit da44bcb
Show file tree
Hide file tree
Showing 66 changed files with 42,319 additions and 0 deletions.
66 changes: 66 additions & 0 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"l10nTabName": {
"message":"Localization"
,"description":"name of the localization tab"
}
,"l10nHeader": {
"message":"It does localization too! (this whole tab is, actually)"
,"description":"Header text for the localization section"
}
,"l10nIntro": {
"message":"'L10n' refers to 'Localization' - 'L' an 'n' are obvious, and 10 comes from the number of letters between those two. It is the process/whatever of displaying something in the language of choice. It uses 'I18n', 'Internationalization', which refers to the tools / framework supporting L10n. I.e., something is internationalized if it has I18n support, and can be localized. Something is localized for you if it is in your language / dialect."
,"description":"introduce the basic idea."
}
,"l10nProd": {
"message":"You <strong>are</strong> planning to allow localization, right? You have <em>no idea</em> who will be using your extension! You have no idea who will be translating it! At least support the basics, it's not hard, and having the framework in place will let you transition much more easily later on."
,"description":"drive the point home. It's good for you."
}
,"l10nFirstParagraph": {
"message":"When the options page loads, elements decorated with <strong>data-l10n</strong> will automatically be localized!"
,"description":"inform that <el data-l10n='' /> elements will be localized on load"
}
,"l10nSecondParagraph": {
"message":"If you need more complex localization, you can also define <strong>data-l10n-args</strong>. This should contain <span class='code'>$containerType$</span> filled with <span class='code'>$dataType$</span>, which will be passed into Chrome's i18n API as <span class='code'>$functionArgs$</span>. In fact, this paragraph does just that, and wraps the args in mono-space font. Easy!"
,"description":"introduce the data-l10n-args attribute. End on a lame note."
,"placeholders": {
"containerType": {
"content":"$1"
,"example":"'array', 'list', or something similar"
,"description":"type of the args container"
}
,"dataType": {
"content":"$2"
,"example":"string"
,"description":"type of data in each array index"
}
,"functionArgs": {
"content":"$3"
,"example":"arguments"
,"description":"whatever you call what you pass into a function/method. args, params, etc."
}
}
}
,"l10nThirdParagraph": {
"message":"Message contents are passed right into innerHTML without processing - include any tags (or even scripts) that you feel like. If you have an input field, the placeholder will be set instead, and buttons will have the value attribute set."
,"description":"inform that we handle placeholders, buttons, and direct HTML input"
}
,"l10nButtonsBefore": {
"message":"Different types of buttons are handled as well. &lt;button&gt; elements have their html set:"
}
,"l10nButton": {
"message":"in a <strong>button</strong>"
}
,"l10nButtonsBetween": {
"message":"while &lt;input type='submit'&gt; and &lt;input type='button'&gt; get their 'value' set (note: no HTML):"
}
,"l10nSubmit": {
"message":"a <strong>submit</strong> value"
}
,"l10nButtonsAfter": {
"message":"Awesome, no?"
}
,"l10nExtras": {
"message":"You can even set <span class='code'>data-l10n</span> on things like the &lt;title&gt; tag, which lets you have translatable page titles, or fieldset &lt;legend&gt; tags, or anywhere else - the default <span class='code'>Boil.localize()</span> behavior will check every tag in the document, not just the body."
,"description":"inform about places which may not be obvious, like <title>, etc"
}
}
7 changes: 7 additions & 0 deletions css/screen.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.carContainer {
background-color: #88DDDD;
-webkit-border-radius: 10px;
border-width: 2px;
border-color: #447777;
padding: 10px;
}
Binary file added icons/kbblogo128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/kbblogo16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/kbblogo48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
59 changes: 59 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"name": "Kelley Blue Book for Craigslist",
"version": "1.0.3",
"manifest_version": 2,
"description": "Kelley Blue Book for Craigslist allows you to quickly find the true KBB value for cars on Craigslist so you can find a good deal",
"homepage_url": "http://www.seantburke.com",
"web_accessible_resources": [
"src/inject/fonts/glyphicons-halflings-regular.*",
"src/inject/webcode/images/logo240.png",
"src/inject/webcode/images/logo240_2x.png",
"src/inject/webcode/scripts/canvas.js",
"src/inject/webcode/kbb.html",
"icons/kbblogo*.png"
],
"icons": {
"16": "icons/kbblogo16.png",
"48": "icons/kbblogo48.png",
"128": "icons/kbblogo128.png"
},
"content_security_policy": "script-src 'self' https://ssl.google-analytics.com https://www.google-analytics.com 'unsafe-eval'; object-src 'self'",
"default_locale": "en",
"background": {
"scripts": [
"src/bg/libs/jquery/jquery-1.11.0.min.js",
"src/bg/libs/jquery/jquery-migrate-1.2.1.min.js",
"src/bg/background.js"
],
"persistent": true
},
"options_page": "src/options_custom/index.html",
"permissions": [
"*://*.kbb.com/*",
"*://*.craigslist.org/ct*/*.html"
],
"content_scripts": [
{
"matches": [
"*://*.craigslist.org/ct*/*.html",
"*://*.craigslist.org/*/ct*/*.html"
],
"js": [
"src/bg/libs/jquery/jquery-1.11.0.min.js",
"src/bg/libs/jquery/jquery-migrate-1.2.1.min.js",
"src/bg/libs/bootstrap/bootstrap.min.js",
"src/bg/libs/d3/d3.js",
"src/inject/js/inject.js",
"src/inject/webcode/scripts/canvas.js",
"src/inject/js/iframe.js"
],
"css": [
"src/inject/css/inject.css",
"src/inject/css/bootstrap-theme.min.css",
"src/inject/css/bootstrap.min.css"
],
"all_frames": true,
"run_at": "document_end"
}
]
}
15 changes: 15 additions & 0 deletions src/bg/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
define([
'jquery',
'underscore',
'backbone',
'router', // Request router.js
], function($, _, Backbone, Router){
var initialize = function(){
// Pass in our Router module and call it's initialize function
Router.initialize();
}

return {
initialize: initialize
};
});
14 changes: 14 additions & 0 deletions src/bg/background.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<html>
<head>
</head>
<body>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('require', 'displayfeatures');
ga('create', 'UA-42611920-3', { 'userId': chrome.extension.getURL('/src/inject/webcode/images/logo240_2x.png')});
ga('send', 'pageview');
</script>
</body>
Loading

0 comments on commit da44bcb

Please sign in to comment.