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

Admin UI title, brand color change, vendure info hiding feature #391

Closed
BeepLoveKarki opened this issue Jun 25, 2020 · 2 comments · Fixed by #610
Closed

Admin UI title, brand color change, vendure info hiding feature #391

BeepLoveKarki opened this issue Jun 25, 2020 · 2 comments · Fixed by #610

Comments

@BeepLoveKarki
Copy link
Contributor

I want a function in the admin UI dashboard where I can modify Admin UI branding as per my own brand like adding a brand color instead of blue everywhere, hiding/modifying the vendure related texts and branding.

Also if possible, css customization features like of wordpress can also be good if possible.

@jeancx
Copy link
Contributor

jeancx commented Jan 2, 2021

Hi i would like to do this, if i may. My idea is to modify admin-ui-plugin, to add customized configs on adminUiConfig like:

// project/vendure-config.ts
plugins: [
  AdminUiPlugin.init({
    port: 3002,
    app: {
      path: 'admin-ui/dist',
      adminUiConfig: {
        brand: 'My Store',
        faviconPath: 'favicon.ico',
        smallLogoPath: 'my-store-logo-75px.png',
        bigLogoPath: 'my-store-logo-300px.png',
        stylePath: 'my-store-style.scss',
        hideVendureBranding: false,
      },
    }
  }),
],
  • Modify admin-ui to render customizations on component html
  • Make admin-ui-plugin to modify index.html from compiled admin-ui to inject custom style after default style link, so user can customize and overwrite desired styles.
  • Modify interface AdminUiConfig on common/lib/shared-types to accept new configs.

michaelbromley pushed a commit that referenced this issue Jan 5, 2021
Relates to #391

* feat(common): Add custom options on AdminUiConfig interface

* feat(admin-ui-plugin): Set custom options on adminUiConfig

* feat(admin-ui): Render custom options on adminUi

* feat(admin-ui): Set custom title and stylesheet

* feat(admin-ui-plugin): Overwrite favicon when informed by user

* refactor: Change assets path to url

* feat(docs): Guide to admin-ui-plugin customize

* chore: Remove doc changes of admin ui index

* chore: Revert logo and style changes

* chore: Revert dev-config.ts changes
@michaelbromley michaelbromley reopened this Jan 5, 2021
@michaelbromley michaelbromley modified the milestones: v1.0.0, v0.18.1 Jan 5, 2021
michaelbromley added a commit that referenced this issue Jan 7, 2021
michaelbromley added a commit that referenced this issue Jan 7, 2021
@Prashantch265
Copy link

Prashantch265 commented Aug 17, 2024

brand: 'my brand', --> display my brand on the login page when hideVendureBranding is true
hideVendureBranding: true, --> hides custom logo from navbar when set true

I don't know if there are any restrictions regarding the community edition, but I cannot set my brand name and custom logo with the following options.

adminUiConfig: {
                apiPort: 3000,
                brand: 'My Brand',
                hideVendureBranding: true,
                hideVersion: true,
                // loginImageUrl: path.join(__dirname, '../public/loginscreen.jpeg'),  // it throws 404 not found but I can access the image in my browser with URL
            },
            app: compileUiExtensions({
                outputPath: path.join(__dirname, '../admin-ui'),
                extensions: [
                    UiPlugin.ui,
                    setBranding({
                        
                        // This is used as the branding in the top-left above the navigation
                        smallLogoPath: path.join(__dirname, '../public/logo-large.png'),
                        // This is used on the login page
                        largeLogoPath: path.join(__dirname, '../public/logo-large.png'),
                        faviconPath: path.join(__dirname, '../public/favicon.ico'),
                      }),
                    
                ],
                devMode: true,
            }),

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

Successfully merging a pull request may close this issue.

4 participants