Skip to content

Commit

Permalink
#13 DONE
Browse files Browse the repository at this point in the history
  • Loading branch information
carloshpds committed Sep 10, 2016
1 parent 4436d80 commit 1a0689c
Show file tree
Hide file tree
Showing 13 changed files with 1,232 additions and 346 deletions.
Binary file added chromeExtension/assets/fontawesome-webfont.eot
Binary file not shown.
685 changes: 685 additions & 0 deletions chromeExtension/assets/fontawesome-webfont.svg
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 chromeExtension/assets/fontawesome-webfont.ttf
Binary file not shown.
Binary file added chromeExtension/assets/fontawesome-webfont.woff
Binary file not shown.
Binary file added chromeExtension/assets/fontawesome-webfont.woff2
Binary file not shown.
865 changes: 525 additions & 340 deletions chromeExtension/features/content/CategoryBrowse.component.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions chromeExtension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,10 @@
"activeTab",
"declarativeContent",
"https://ajax.googleapis.com/"
],

"web_accessible_resources" : [
"assets/*"
]

}
8 changes: 6 additions & 2 deletions reactComponent/cfg/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,17 @@ function getDefaultModules() {
loader: 'style-loader!css-loader!postcss-loader!stylus-loader'
},
{
test: /\.(png|jpg|gif|woff|woff2|ttf|eot|otf)?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
test: /\.(png|jpg|gif)?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
loader: 'url-loader?limit=8192'
},
{
test: /\.(mp4|ogg|svg)?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
test: /\.(mp4|ogg)?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
loader: 'file-loader'
},
{
test: /\.(woff|woff2|ttf|eot|otf|svg)?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
loader: 'file-loader?name=[name].[ext]'
},
{ test: /\.rt$/, loader: "react-templates-loader" }
]
};
Expand Down
3 changes: 2 additions & 1 deletion reactComponent/cfg/dist.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ let config = Object.assign({}, baseConfig, {
module: defaultSettings.getDefaultModules()
});

config.output.filename = 'CategoryBrowse.component.js';
config.output.filename = 'CategoryBrowse.component.js';
config.output.publicPath = null;

// Add needed loaders to the defaults here
config.module.loaders.push({
Expand Down
5 changes: 4 additions & 1 deletion reactComponent/src/component.entry.prod.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@


import App from './components/Main.prod';
import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main.prod';


/**
* Variables
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,10 @@ $fa-font-path: '../fontAwesome';
.clear-trigger{
position: absolute;
line-height: 50px;
font-size: 20px;
right: 10px;
opacity: 0.5;
transition: opacity 0.3s ease-in-out;
transition: opacity 0.2s ease-in-out;
cursor: pointer;

&:hover {
Expand Down Expand Up @@ -172,7 +173,7 @@ $fa-font-path: '../fontAwesome';

.ff-toolbar-item {
opacity: 0.5;
transition: opacity 0.3s ease-in-out;
transition: opacity 0.2s ease-in-out;
margin: 10px 10px 0 0;
display: block;
cursor: pointer;
Expand Down
1 change: 1 addition & 0 deletions reactComponent/src/components/Main.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import React from 'react';
import {IntlProvider, addLocaleData} from 'react-intl';

import './overridesPublicPath.js';
import CategoryBrowse from './CategoryBrowse/CategoryBrowse';
import I18n from './i18n/i18n';

Expand Down
1 change: 1 addition & 0 deletions reactComponent/src/components/overridesPublicPath.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__webpack_public_path__ = window.chrome.extension.getURL("") + 'assets/';

0 comments on commit 1a0689c

Please sign in to comment.