Skip to content

Commit

Permalink
Getting Started page (elastic#11673)
Browse files Browse the repository at this point in the history
* Initial code

* Renaming files/folders

* Notes and changes from HTML/CSS review

* CSS changes

* Fixing transform units

* Fleshing out logo circle

* Adding logos

* Un-nesting styles

* Adding kuiText class on <p> elements

* Making shield icon 404 go away

* Using trustAsHtml filter; using registry

* Adding code for registry

* Adding images

* Hooking up the opt-out link

* Fixing linter issues

* Fix issue with refresh bringing back nav

* Removing load_default module

* Use GETTING_STARTED_ROUTE constant

* Allow topMessage to be a directive

* Adding kuiLink CSS class to anchor elements

* Adding alt text to images

* Replace getters with regular methods

* Remove leftover comment

* Removing unnecessary comment

* Fixing typo in comment

* Adding comments for message properties

* Fixing typo in method name

* Defining custom CSS class

* Fixing method call

* Creating custom CSS classes

* Adding documentation links

* Use a instead of button for demo link

* Allow directives in manage and monitor messages

* Refactoring shared code into single ui/public/getting_started folder

* Adding README

* Fixing whitespace in/around links

* Trim messages before setting them

* Decorate in-app links with opt-out attribute

* Opt out of the Getting Started page if the user already has index patterns

* Adding more commentary around expectations of setTopMessage use

* Using ng-src and ng-href attributes where attr values are angular expressions

* Importing the directive before using it

* Using ui/registry for message registries

* Renaming service => helpers to clarify intent

* Adding explanatory comment

* Adding "or"

* Fixing div id

* Breaks out the inject logic into another directive

* Adding Getting Started page object for functional tests

* Consolidate into one registry

* Fixes incorrect classes

* Changes how styles are applied to injected-items items

* Modifying class name per CSS style guide

* Adding getting started doc link

* Removing unused import
  • Loading branch information
ycombinator committed May 15, 2017
1 parent 93380ea commit 569ffb0
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div>
You have an important decision to make. To do so, <button ng-click="testClick()">click me</button>.
</div>
19 changes: 19 additions & 0 deletions src/core_plugins/testbed/public/components/blahblah/blahblah.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { uiModules } from 'ui/modules';
import template from './blahblah.html';

const app = uiModules.get('kibana');

app.directive('blahblah', function () {
return {
restrict: 'E',
replace: true,
template: template,
scope: {},
controller: ($scope) => {
$scope.testClick = () => {
alert(`I'm doing something important!`);
console.log($scope);
};
}
};
});
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './blahblah';
26 changes: 25 additions & 1 deletion src/core_plugins/testbed/public/index.js
Original file line number Diff line number Diff line change
@@ -1 +1,25 @@
import './testbed';
import './testbed';


import './components/blahblah';
import { GettingStartedRegistryProvider } from 'ui/getting_started/registry';
import { GETTING_STARTED_REGISTRY_TYPES } from 'ui/getting_started/constants';

GettingStartedRegistryProvider.register(() => ({
type: GETTING_STARTED_REGISTRY_TYPES.TOP_MESSAGE,
template: `<blahblah></blahblah>`
}));
GettingStartedRegistryProvider.register(() => ({
type: GETTING_STARTED_REGISTRY_TYPES.TOP_MESSAGE,
template: `Nam hendrerit augue id egestas ultricies.`
}));

GettingStartedRegistryProvider.register(() => ({
type: GETTING_STARTED_REGISTRY_TYPES.MANAGE_AND_MONITOR_MESSAGE,
template: `Lorem ipsum dolor sit amet, consectetur <a href="http://www.google.com">consectetur</a> adipiscing elit.`
}));

GettingStartedRegistryProvider.register(() => ({
type: GETTING_STARTED_REGISTRY_TYPES.MANAGE_AND_MONITOR_MESSAGE,
template: `Nam luctus mattis urna, ac <a href="http://www.google.com">fringilla</a> tellus efficitur at.`
}));

0 comments on commit 569ffb0

Please sign in to comment.