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

Own Logo #309

Closed
drewniakradoslaw opened this issue Apr 15, 2020 · 1 comment
Closed

Own Logo #309

drewniakradoslaw opened this issue Apr 15, 2020 · 1 comment

Comments

@drewniakradoslaw
Copy link

drewniakradoslaw commented Apr 15, 2020

I would like to add the possibility to change the logo in the admin panel to your own. Thank you .

@michaelbromley michaelbromley added this to the v0.11.1 milestone Apr 15, 2020
michaelbromley added a commit that referenced this issue Apr 22, 2020
Previously, passing a the path of a file rather than a dir in the extension `staticAssets` array resulted in an uncaught error. This change fixes it so individual files as well as directories are correctly copied over to the custom admin-ui project. This makes it possible e.g. to specify your own logo images (as in #309) to overwrite the default logo images.
@michaelbromley
Copy link
Member

With the referenced fix above, this is now possible using the existing ui extensions system:

plugins: [
  AdminUiPlugin.init({
    port: 3002,
    app: compileUiExtensions({
      outputPath: path.join(__dirname, 'admin-ui'),
      extensions: [{
         {
           extensionPath: path.join(__dirname, 'my-images'),
           ngModules: [],
           staticAssets: [
             {
               path: path.join(__dirname, 'my-images/small-logo.png'),
               rename: 'cube-logo-75px.png',
             },
             {
               path: path.join(__dirname, 'my-images/large-logo.png'),
               rename: 'cube-logo-300px.png',
             },
           ],
         },
      }],
      devMode: true,
    }),
  }),
],

The above config basically just overwrites the logo image files with your own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants