Skip to content

Commit

Permalink
fix: font-awesome remote loading
Browse files Browse the repository at this point in the history
  • Loading branch information
lakhansamani committed Feb 10, 2020
1 parent 017b317 commit 21c1d2b
Show file tree
Hide file tree
Showing 1,654 changed files with 130,527 additions and 22 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"license": "MIT",
"scripts": {
"dev:browser": "lerna run watch --scope @appbaseio/dejavu-browser --stream",
"start": "lerna run watch --scope dejavu-main --stream",
"dev:dejavu": "lerna run watch --scope dejavu-main --stream",
"dev:dejavu:site": "lerna run watch:site --scope dejavu-main --stream",
"build:browser": "lerna run build --scope @appbaseio/dejavu-browser --stream",
Expand Down
30 changes: 13 additions & 17 deletions packages/dejavu-main/app/index.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="msapplication-TileColor" content="#ffffff" />
<meta
name="msapplication-TileImage"
content="/favicon/ms-icon-144x144.png"
/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
/>
<title>Dejavu, the missing Web UI for Elasticsearch</title>
</head>
<head>
<meta charset="UTF-8" />
<meta name="msapplication-TileColor" content="#ffffff" />
<meta
name="msapplication-TileImage"
content="/favicon/ms-icon-144x144.png"
/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Dejavu, the missing Web UI for Elasticsearch</title>
</head>

<body>
<div id="root"></div>
</body>
<body>
<div id="root"></div>
</body>
</html>
7 changes: 4 additions & 3 deletions packages/dejavu-main/app/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ import ReactDOM from 'react-dom';
import { CrossStorageHub } from 'cross-storage';

import App from './App';
import './styles/font-awesome/css/all.min.css';

CrossStorageHub.init([
{ origin: /\.appbase.io$/, allow: ['get'] },
{ origin: /localhost:1359$/, allow: ['get'] },
{ origin: /localhost:1358$/, allow: ['get'] },
{ origin: /\.appbase.io$/, allow: ['get'] },
{ origin: /localhost:1359$/, allow: ['get'] },
{ origin: /localhost:1358$/, allow: ['get'] },
]);

ReactDOM.render(<App />, document.getElementById('root'));
34 changes: 34 additions & 0 deletions packages/dejavu-main/app/src/styles/font-awesome/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Font Awesome Free License
-------------------------

Font Awesome Free is free, open source, and GPL friendly. You can use it for
commercial projects, open source projects, or really almost whatever you want.
Full Font Awesome Free license: https://fontawesome.com/license/free.

# Icons: CC BY 4.0 License (https://creativecommons.org/licenses/by/4.0/)
In the Font Awesome Free download, the CC BY 4.0 license applies to all icons
packaged as SVG and JS file types.

# Fonts: SIL OFL 1.1 License (https://scripts.sil.org/OFL)
In the Font Awesome Free download, the SIL OFL license applies to all icons
packaged as web and desktop font files.

# Code: MIT License (https://opensource.org/licenses/MIT)
In the Font Awesome Free download, the MIT license applies to all non-font and
non-icon files.

# Attribution
Attribution is required by MIT, SIL OFL, and CC BY licenses. Downloaded Font
Awesome Free files already contain embedded comments with sufficient
attribution, so you shouldn't need to do anything additional when using these
files normally.

We've kept attribution comments terse, so we ask that you do not actively work
to remove them from files, especially code. They're a great way for folks to
learn about Font Awesome.

# Brand Icons
All brand icons are trademarks of their respective owners. The use of these
trademarks does not indicate endorsement of the trademark holder by Font
Awesome, nor vice versa. **Please do not use brand logos for any purpose except
to represent the company, product, or service to which they refer.**
Loading

0 comments on commit 21c1d2b

Please sign in to comment.