Git Product home page Git Product logo

shopware-pwa-v0.9.0's Introduction

shopware-pwa v0.9.x

Welcome to the live sandbox at codesandbox! You have a running shopware-pwa project now, ready for your commands!

If you are not familiar with the project, visit official documentation to get the details.

Live customization

Feel free to customize the application by using standard CLI commands in the codesandbox's terminal - open the new one next to the dev terminal with the nuxt output.

node_modules/@shopware-pwa/cli/bin/shopware-pwa -h

shopware-pwa version 0.9.x

  version (v)     Output the version number
  build           Build your project for production
  build-theme     Build your theme for Shopware PWA projects.
  create-theme    Create new theme for Shopware PWA projects.
  dev             Run the initialised project for development.
  dev-theme       Develop your theme for Shopware PWA projects.
  init (i)        Create new Shopware PWA project inside the current directory. Can be invoked multiple times for actualisations.
  override (o)    Allows you to override theme component. Component will appear in project ready to be edited.
  snippets        Provides snippets support for Shopware PWA

An example of component customization

  1. use the override command to override the specific cms block (vue component)
$ node_modules/@shopware-pwa/cli/bin/shopware-pwa override

✔ Type or select component to override · /SwLogo.vue
Component overrided. You can edit it in src/components/SwLogo.vue
  1. Edit component
$ vim src/components/SwLogo.vue

<template>
  <nuxt-link
    :to="$i18n.path('/')"
    class="sf-header__logo"
    data-cy="header-logo"
  >
    <SfImage src="/img/logo.svg" :alt="$t('page.title')" />
  </nuxt-link>
</template>

<script>
import { SfImage } from "@storefront-ui/vue"

export default {
  components: {
    SfImage,
  },
}
</script>

<style lang="scss" scoped>
@import "@/assets/scss/variables";

.sf-header__logo {
  height: 2rem;
}
</style>
  1. Save and that's all. The application is being reloaded on the fly. Now you have your own logo component in shopware-pwa!

shopware-pwa-v0.9.0's People

Contributors

mkucmus avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.