Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Centralize icons #3108

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ bin
.classpath
/styles.css
/styles-v1.css
/styles-v2.css
.project
.vscode
.DS_Store
Expand Down
2 changes: 1 addition & 1 deletion integtest/spec/all_books_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def self.has_license(name, heading)
has_license 'redux-thunk', 'The MIT License (MIT)'
has_license 'symbol-observable', 'The MIT License (MIT)'
end
file_context 'html/static/styles-v1.css' do
file_context 'html/static/styles-v2.css' do
has_license 'Bootstrap', 'The MIT License (MIT)'
has_license 'Inter', 'SIL OPEN FONT LICENSE'
has_license 'Noto Sans Japanese', 'SIL OPEN FONT LICENSE'
Expand Down
2 changes: 1 addition & 1 deletion integtest/spec/helper/dsl/convert_all.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def convert_all_before_context(relative_conf: false, target_branch: nil,
expect(contents).not_to include('sourceMappingURL=')
end
end
file_context 'html/static/styles-v1.css' do
file_context 'html/static/styles-v2.css' do
it 'is minified' do
expect(contents).to include(<<~CSS.strip)
*{font-family:Inter,sans-serif}
Expand Down
4 changes: 2 additions & 2 deletions integtest/spec/single_book_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
end
it 'has a link to the css' do
expect(head).to include(<<~HTML)
<link rel="stylesheet" type="text/css" href="/guide/static/styles-v1.css" />
<link rel="stylesheet" type="text/css" href="/guide/static/styles-v2.css" />
HTML
end
it 'has a link to the js' do
Expand Down Expand Up @@ -729,7 +729,7 @@ def self.convert_with_source_branch_before_context(branch)
Net::HTTP.get_response(URI("#{static}/jquery.js"))
end
let(:css) do
Net::HTTP.get_response(URI("#{static}/styles-v1.css"))
Net::HTTP.get_response(URI("#{static}/styles-v2.css"))
end

include_examples 'the root'
Expand Down
8 changes: 4 additions & 4 deletions lib/ES/Util.pm
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ sub start_web_resources_watcher {
--public-url /guide/static/
--hmr-port 8001
-d /tmp/parcel/
resources/web/docs_js/index-v1.js resources/web/styles-v1.pcss) );
resources/web/docs_js/index-v1.js resources/web/styles-v2.pcss) );
}

#===================================
Expand All @@ -722,7 +722,7 @@ sub build_web_resources {

my $parcel_out = dir('/tmp/parcel');
my $compiled_js = $parcel_out->file('docs_js/index-v1.js');
my $compiled_css = $parcel_out->file('styles-v1.css');
my $compiled_css = $parcel_out->file('styles-v2.css');

unless ( -e $compiled_js && -e $compiled_css ) {
# We write the compiled js and css to /tmp so we can use them on
Expand All @@ -735,15 +735,15 @@ sub build_web_resources {
'--public-url', '/guide/static/',
'--experimental-scope-hoisting', '--no-source-maps',
'-d', $parcel_out,
'resources/web/docs_js/index-v1.js', 'resources/web/styles-v1.pcss';
'resources/web/docs_js/index-v1.js', 'resources/web/styles-v2.pcss';
die "Parcel didn't make $compiled_js" unless -e $compiled_js;
die "Parcel didn't make $compiled_css" unless -e $compiled_css;
}

my $static_dir = $dest->subdir( 'raw' )->subdir( 'static' );
$static_dir->mkpath;
my $js = $static_dir->file( 'docs-v1.js' );
my $css = $static_dir->file( 'styles-v1.css' );
my $css = $static_dir->file( 'styles-v2.css' );
my $js_licenses = file( 'resources/web/docs.js.licenses' );
my $css_licenses = file( 'resources/web/styles.css.licenses' );
$js->spew(
Expand Down
2 changes: 1 addition & 1 deletion resources/web/__test__/air_gapped_template.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe("air_gapped_template.html", () => {
* the built-docs repo.
*/
const compiledWebResources = [
"/guide/static/styles-v1.css",
"/guide/static/styles-v2.css",
"/guide/static/docs-v1.js",
"/guide/static/jquery.js"
];
Expand Down
2 changes: 1 addition & 1 deletion resources/web/air_gapped_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<link rel="apple-touch-icon-precomposed" sizes="64x64" href="/favicon_64x64_16bit.png">
<link rel="apple-touch-icon-precomposed" sizes="32x32" href="/favicon_32x32.png">
<link rel="apple-touch-icon-precomposed" sizes="16x16" href="/favicon_16x16.png">
<link rel="stylesheet" type="text/css" href="/guide/static/styles-v1.css" />
<link rel="stylesheet" type="text/css" href="/guide/static/styles-v2.css" />
</head>

<!--© 2015-2021 Elasticsearch B.V. Copying, publishing and/or distributing without written permission is strictly prohibited.-->
Expand Down
461 changes: 461 additions & 0 deletions resources/web/style/icons.pcss

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions resources/web/style/img/icons/accessibility.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions resources/web/style/img/icons/aggregate.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions resources/web/style/img/icons/analyzeEvent.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions resources/web/style/img/icons/annotation.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions resources/web/style/img/icons/anomaly_chart.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions resources/web/style/img/icons/anomaly_swim_lane.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions resources/web/style/img/icons/apm_trace.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions resources/web/style/img/icons/app_add_data.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions resources/web/style/img/icons/app_advanced_settings.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions resources/web/style/img/icons/app_agent.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions resources/web/style/img/icons/app_apm.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions resources/web/style/img/icons/app_app_search.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions resources/web/style/img/icons/app_auditbeat.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions resources/web/style/img/icons/app_canvas.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading