<feed xmlns='http://www.w3.org/2005/Atom'>
<title>BMC/OpenBmc/bmcweb.git/static/styles, branch master</title>
<subtitle>A do everything Redfish, KVM, GUI, and DBus webserver for OpenBMC (mirror)</subtitle>
<id>https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/atom?h=master</id>
<link rel='self' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/'/>
<updated>2024-07-12T19:51:31+00:00</updated>
<entry>
<title>Make schemas selectable</title>
<updated>2024-07-12T19:51:31+00:00</updated>
<author>
<name>Ed Tanous</name>
<email>ed@tanous.net</email>
</author>
<published>2024-05-29T23:51:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=a529a6aa44e04ae5845d1324f3e8c887ebd47f7b'/>
<id>urn:sha1:a529a6aa44e04ae5845d1324f3e8c887ebd47f7b</id>
<content type='text'>
Which schemas are installed should be selectable in both a meson config,
and trivially by forks.  This commit gets us closer to that idea.

It does it in several ways, first, the code for generating
JsonSchemaFile resources has been changed to be generated at runtime,
based on files on disk.  This is slightly slower, but allows installing
schemas from anywhere, and matches the CSDL handling.

Next, the schema folders are separated into two sets
csdl -&gt; This includes the complete schema pack from dmtf
installed -&gt; this includes only the schemas the bmc includes

Similar folders exist for json-schema and json-schema-installed.

This allows any additional schemas to be a single symlink addition.
Note, this also checks in all of the dmtf json schemas, not just the
versions we use.  This allows us to update the schema pack without
needing to break our versions we ship.

Because the static files are now selectable, all files need to be in a
folder.  This forces the css and image for the redfish built-in gui to
be moved.

Tested:
/redfish/v1/JsonSchemas returns the correct result
/redfish/v1/JsonSchemas/UpdateService returns a JsonSchemaFile instance
/redfish/v1/JsonSchemas/UpdateService/UpdateService&lt;version&gt;json returns
the JsonSchemaFile contents.

Redfish service validator passes.

Change-Id: Ie96b2e4b623788dc2ec94eb40fcfd80325f0d826
Signed-off-by: Ed Tanous &lt;ed@tanous.net&gt;
</content>
</entry>
<entry>
<title>Remove default.css from the image</title>
<updated>2021-03-15T16:51:37+00:00</updated>
<author>
<name>Ed Tanous</name>
<email>edtanous@google.com</email>
</author>
<published>2021-03-08T18:09:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=d8ef9915dda4d2e3b7aec885ebfa7debce61bff8'/>
<id>urn:sha1:d8ef9915dda4d2e3b7aec885ebfa7debce61bff8</id>
<content type='text'>
This is primarily to save space, and remove cruft.  As part of the "old"
json-&gt;html parser, this file was used to do the syntax highlighting for
the hilight-js class we used.  That parser has been removed, so this
code is now dead.

Tested:
Has no external impact to test.  Code builds.

Signed-off-by: Ed Tanous &lt;edtanous@google.com&gt;
Change-Id: Iebbf97003d41818abc2a9eae68c23c636f13d2e6
</content>
</entry>
<entry>
<title>Improve JSON-&gt;HTML conversion</title>
<updated>2020-09-24T02:01:21+00:00</updated>
<author>
<name>Ed Tanous</name>
<email>ed.tanous@intel.com</email>
</author>
<published>2019-05-21T20:00:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=57fce80e24cfe08e530e0697d6c70bba14076d1c'/>
<id>urn:sha1:57fce80e24cfe08e530e0697d6c70bba14076d1c</id>
<content type='text'>
The existing JSON to html conversion is quite unfortunate, as it runs
several very expensive regular expressions on an output to properly
invoke the correct behavior, and to escape things like links.  This
patchset adjusts the behavior to directly dump the tree to HTML,
skipping the json step entirely.

Most of the code was pulled from the nlohmann::serializer class.

Small side node:
This also resolves the CSP issue with the inline CSS classes that are
currently embedded in the json UI.

Note, in terms of user facing behavior, this finally fixes the CSS
issue, so the div is now centered as designed.  Previously it was left
justified.

Tested:
Ran several redfish schemas and compared to old ones.  Output appears
the same in the window, and content security policy warnings are gone.
Verified several links works as expected, and verified the behavior of
all base types, as well as empty arrays and empty objects.  All appear
to work correctly.

Signed-off-by: Ed Tanous &lt;ed@tanous.net&gt;
Change-Id: Id9bf6dc33acb1603f009de4cd322e81d83f334be
</content>
</entry>
<entry>
<title>Implement pretty printing json to HTML</title>
<updated>2018-04-22T18:15:25+00:00</updated>
<author>
<name>Ed Tanous</name>
<email>ed.tanous@intel.com</email>
</author>
<published>2018-03-17T21:40:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=257f5795a314fe29e4e9488658fb47a8d450fd5c'/>
<id>urn:sha1:257f5795a314fe29e4e9488658fb47a8d450fd5c</id>
<content type='text'>
Change-Id: Ibe3cdc2cd53470ccd437b1b6e21bc7dd29c4b85e
Signed-off-by: Ed Tanous &lt;ed.tanous@intel.com&gt;
</content>
</entry>
</feed>
