diff --git a/emails/templates/layouts/default.html b/emails/templates/layouts/default.html index ca54acdd2060c..c6b433c6cbc75 100644 --- a/emails/templates/layouts/default.html +++ b/emails/templates/layouts/default.html @@ -107,7 +107,7 @@ <table class="twelve columns"> <tr> <td class="twelve sub-columns center"> - <img class="logo" src="http://grafana.org/assets/img/logo_new_transparent_200x48.png" style="width: 200px; float: none; display: inline"> + <img class="logo" src="1hskmz3i2o5bhic6pojfb512.wpengine.netdna-cdn.com/wp-content/uploads/2016/10/Natel_Energy_logo_blue.png" style="width: 200px; float: none; display: inline"> </td> <td class="expander"></td> </tr> @@ -143,7 +143,7 @@ <center> <p style="text-align: center; font-size: 12px; color: #999999;"> Sent by <a href="[[.AppUrl]]">Grafana v[[.BuildVersion]]</a> - <br />© 2018 Grafana Labs + <br />© 2019 Natel Energy </p> </center> </td> diff --git a/public/app/core/components/Footer/Footer.tsx b/public/app/core/components/Footer/Footer.tsx index 45f7cc71131ca..3aa19a0426a06 100644 --- a/public/app/core/components/Footer/Footer.tsx +++ b/public/app/core/components/Footer/Footer.tsx @@ -1,5 +1,4 @@ import React, { FC } from 'react'; -import { Tooltip } from '@grafana/ui'; interface Props { appName: string; @@ -16,37 +15,15 @@ export const Footer: FC<Props> = React.memo( <div className="text-center"> <ul> <li> - <a href="http://docs.grafana.org" target="_blank"> - <i className="fa fa-file-code-o" /> Docs + <a href="https://upstream.tech/" target="_blank"> + Upstream Tech </a> </li> <li> - <a href="https://grafana.com/services/support" target="_blank"> - <i className="fa fa-support" /> Support Plans + <a href="https://grafana.com" target="_blank" title={`(commit: ${buildCommit})`}> + v{buildVersion} </a> </li> - <li> - <a href="https://community.grafana.com/" target="_blank"> - <i className="fa fa-comments-o" /> Community - </a> - </li> - <li> - <a href="https://grafana.com" target="_blank"> - {appName} - </a>{' '} - <span> - v{buildVersion} (commit: {buildCommit}) - </span> - </li> - {newGrafanaVersionExists && ( - <li> - <Tooltip placement="auto" content={newGrafanaVersion}> - <a href="https://grafana.com/get" target="_blank"> - New version available! - </a> - </Tooltip> - </li> - )} </ul> </div> </footer> diff --git a/public/app/core/components/OrgActionBar/OrgActionBar.tsx b/public/app/core/components/OrgActionBar/OrgActionBar.tsx index 016c477766863..5753240111b49 100644 --- a/public/app/core/components/OrgActionBar/OrgActionBar.tsx +++ b/public/app/core/components/OrgActionBar/OrgActionBar.tsx @@ -14,7 +14,7 @@ export interface Props { export default class OrgActionBar extends PureComponent<Props> { render() { const { searchQuery, layoutMode, onSetLayoutMode, linkButton, setSearchQuery, target } = this.props; - const linkProps = { href: linkButton.href }; + const linkProps = { href: linkButton ? linkButton.href : '#' }; if (target) { (linkProps as any).target = target; @@ -33,9 +33,11 @@ export default class OrgActionBar extends PureComponent<Props> { <LayoutSelector mode={layoutMode} onLayoutModeChanged={(mode: LayoutMode) => onSetLayoutMode(mode)} /> </div> <div className="page-action-bar__spacer" /> - <a className="btn btn-primary" {...linkProps}> - {linkButton.title} - </a> + {linkButton && ( + <a className="btn btn-primary" {...linkProps}> + {linkButton.title} + </a> + )} </div> ); } diff --git a/public/app/features/plugins/PluginListPage.tsx b/public/app/features/plugins/PluginListPage.tsx index 03d383fdec0ca..911cde2ebdf6e 100644 --- a/public/app/features/plugins/PluginListPage.tsx +++ b/public/app/features/plugins/PluginListPage.tsx @@ -41,11 +41,6 @@ export class PluginListPage extends PureComponent<Props> { searchQuery, } = this.props; - const linkButton = { - href: 'https://grafana.com/plugins?utm_source=grafana_plugin_list', - title: 'Find more plugins on Grafana.com', - }; - return ( <Page navModel={navModel}> <Page.Contents isLoading={!hasFetched}> @@ -55,7 +50,7 @@ export class PluginListPage extends PureComponent<Props> { layoutMode={layoutMode} onSetLayoutMode={mode => setPluginsLayoutMode(mode)} setSearchQuery={query => setPluginsSearchQuery(query)} - linkButton={linkButton} + linkButton={null} /> {hasFetched && plugins && (plugins && <PluginList plugins={plugins} layoutMode={layoutMode} />)} </> diff --git a/public/img/grafana_icon.svg b/public/img/grafana_icon.svg index 72702223dc77b..5eb8fef4e65e1 100644 --- a/public/img/grafana_icon.svg +++ b/public/img/grafana_icon.svg @@ -1,57 +1,2 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Generator: Adobe Illustrator 20.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> -<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" - width="351px" height="365px" viewBox="0 0 351 365" style="enable-background:new 0 0 351 365;" xml:space="preserve"> -<style type="text/css"> - .st0{fill:url(#SVGID_1_);} -</style> -<g id="Layer_1_1_"> -</g> -<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="175.5" y1="445.4948" x2="175.5" y2="114.0346"> - <stop offset="0" style="stop-color:#FFF100"/> - <stop offset="1" style="stop-color:#F05A28"/> -</linearGradient> -<path class="st0" d="M342,161.2c-0.6-6.1-1.6-13.1-3.6-20.9c-2-7.7-5-16.2-9.4-25c-4.4-8.8-10.1-17.9-17.5-26.8 - c-2.9-3.5-6.1-6.9-9.5-10.2c5.1-20.3-6.2-37.9-6.2-37.9c-19.5-1.2-31.9,6.1-36.5,9.4c-0.8-0.3-1.5-0.7-2.3-1 - c-3.3-1.3-6.7-2.6-10.3-3.7c-3.5-1.1-7.1-2.1-10.8-3c-3.7-0.9-7.4-1.6-11.2-2.2c-0.7-0.1-1.3-0.2-2-0.3 - c-8.5-27.2-32.9-38.6-32.9-38.6c-27.3,17.3-32.4,41.5-32.4,41.5s-0.1,0.5-0.3,1.4c-1.5,0.4-3,0.9-4.5,1.3c-2.1,0.6-4.2,1.4-6.2,2.2 - c-2.1,0.8-4.1,1.6-6.2,2.5c-4.1,1.8-8.2,3.8-12.2,6c-3.9,2.2-7.7,4.6-11.4,7.1c-0.5-0.2-1-0.4-1-0.4c-37.8-14.4-71.3,2.9-71.3,2.9 - c-3.1,40.2,15.1,65.5,18.7,70.1c-0.9,2.5-1.7,5-2.5,7.5c-2.8,9.1-4.9,18.4-6.2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,4.4,2.6,8.3,3.5,11.7 - c0.3,1.4,1.6,2.3,3,2.1c1.5-0.1,2.6-1.3,2.6-2.8C342.6,170.4,342.5,166.1,342,161.2z"/> -</svg> + +<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><path d="M20 0C8.938 0 0 8.946 0 19.982 0 31.017 8.938 40 20 40c2.784 0 5.458-.587 7.839-1.613.22-.11.44-.184.66-.294.219-.11.439-.183.622-.293l-1.355-.696-1.869-2.457 2.015-3.96 3.077.037 4.286 2.163c.11-.146.256-.293.366-.44.11-.146.22-.293.366-.44A20.056 20.056 0 0 0 40 20.018C39.963 8.946 31.026 0 20 0zm-5.128 30.577L3.736 24.931l3.224-6.38 11.135 5.647 1.868 2.456-2.014 3.96-3.077-.037zm12.71-3.263l-3.406 6.71c-.147.256-.366.476-.66.55-.293.11-.586.073-.879-.074l-2.674-1.356c-.55-.293-.805-.953-.512-1.54l3.443-6.673a1.29 1.29 0 0 1 .66-.586c.292-.074.585-.074.878.073l2.674 1.357c.513.293.733.99.476 1.54zm4.652-2.016a.59.59 0 0 1-.33.11.522.522 0 0 1-.439-.22 11.73 11.73 0 0 0-3.992-3.336 11.324 11.324 0 0 0-5.202-1.247h-.073a.564.564 0 0 1-.55-.55c0-.293.257-.55.55-.55 2.014 0 3.992.477 5.787 1.357a12.65 12.65 0 0 1 4.36 3.63c.146.256.11.623-.11.806zm1.905-1.833a.59.59 0 0 1-.33.11.522.522 0 0 1-.439-.22c-1.282-1.613-2.857-2.933-4.725-3.85a13.57 13.57 0 0 0-6.227-1.503.564.564 0 0 1-.55-.55c0-.293.257-.55.55-.55a15.22 15.22 0 0 1 6.703 1.65 15.218 15.218 0 0 1 5.091 4.18c.22.183.147.55-.073.733zm2.051-1.76a.59.59 0 0 1-.33.11.522.522 0 0 1-.439-.22c-1.502-1.907-3.37-3.41-5.568-4.51a16.662 16.662 0 0 0-7.326-1.833.564.564 0 0 1-.549-.55c0-.293.256-.55.55-.55 2.747.037 5.384.697 7.838 1.943 2.308 1.174 4.323 2.787 5.934 4.803.184.257.147.624-.11.807z" fill="#004C5C"/></svg> diff --git a/public/sass/layout/_page.scss b/public/sass/layout/_page.scss index 6b2fa95730e0a..edcefa44e82db 100644 --- a/public/sass/layout/_page.scss +++ b/public/sass/layout/_page.scss @@ -41,7 +41,7 @@ margin-right: auto; padding-left: $spacer * 2; padding-right: $spacer * 2; - max-width: 980px; + max-width: 100%; @include clearfix(); } diff --git a/public/views/index-template.html b/public/views/index-template.html index fa19ae599dd20..1e5a582415f4f 100644 --- a/public/views/index-template.html +++ b/public/views/index-template.html @@ -198,34 +198,16 @@ <div class="text-center"> <ul> <li> - <a href="http://docs.grafana.org" target="_blank"> - <i class="fa fa-file-code-o"></i> - Docs + <a href="https://upstream.tech/" target="_blank"> + Upstream Tech </a> </li> <li> - <a href="https://grafana.com/services/support" target="_blank"> - <i class="fa fa-support"></i> - Support Plans + <a href="https://grafana.com" target="_blank" + title="(commit: [[.BuildCommit]])"> + v[[.BuildVersion]] </a> </li> - <li> - <a href="https://community.grafana.com/" target="_blank"> - <i class="fa fa-comments-o"></i> - Community - </a> - </li> - <li> - <a href="https://grafana.com" target="_blank">[[.AppName]]</a> - <span>v[[.BuildVersion]] (commit: [[.BuildCommit]])</span> - </li> - [[if .NewGrafanaVersionExists]] - <li> - <a href="https://grafana.com/get" target="_blank" bs-tooltip="'[[.NewGrafanaVersion]]'"> - New version available! - </a> - </li> - [[end]] </ul> </div> </footer> diff --git a/scripts/grunt/options/exec.js b/scripts/grunt/options/exec.js index 3296abecfd4a9..fa983e426ba5c 100644 --- a/scripts/grunt/options/exec.js +++ b/scripts/grunt/options/exec.js @@ -18,7 +18,7 @@ module.exports = function(config, grunt) { command: 'yarn run typecheck', src: ['public/app/**/*.ts*'], }, - jest: 'node ./node_modules/jest-cli/bin/jest.js --maxWorkers 2', + jest: 'node ./node_modules/jest-cli/bin/jest.js --updateSnapshot --maxWorkers 2', webpack: 'node ./node_modules/webpack/bin/webpack.js --config scripts/webpack/webpack.prod.js', };