Tuyen
  • Welcome to my document
  • 💼 My work
    • Updimes
      • Custom Link
      • How to add a table of contents
    • Ryviu Shopify
      • Theme
        • Kalles
      • 1.0
      • 2.0
      • Má»™t số lá»—i theme
        • Lá»—i hình ảnh không hiển thị trên theme Avenue
    • Ryviu Wordpress
      • Shortcode
      • Product hook
      • Collection hook
    • Ryviu Blog
      • Thêm HTML code to blog
      • Add Q&A sections to blog post
      • Add button to CMS blog
  • Ryviu Polaris
    • Skeleton
    • Components
    • Image loading
    • Modal Confirm
    • Table Polaris
Powered by GitBook
On this page
  • Card
  • Banner Noty
  • Banner Props
  • Empty table
  • Empty page
  • Modal Confirm
  • Image

Was this helpful?

  1. Ryviu Polaris

Components

PreviousSkeletonNextImage loading

Last updated 1 year ago

Was this helpful?

Card

import CardReport from "@/components/polaris/CardReport.vue";

<CardReport title="Total reviews" :content="countData && countData.total" :load="loadReviewPage" />

Banner Noty

import BannerNoty from "@/components/polaris/BannerNoty.vue";

success, warning, critical

<BannerNoty tone="warning">
    <div class="Polaris-BlockStack" style="--pc-block-stack-order: column; --pc-block-stack-gap-xs: var(--p-space-050);">
        <p style="margin: 0;">Please install the
            <a href="https://chrome.google.com/webstore/detail/ryviu-import-reviews-from/nlijpgankndpklfipncpkljliinbcbca" class="Polaris-Link" target="_blank">Ryviu chrome extension</a>, and reload this page after adding the extension to import reviews.
        </p>
    <div>
    <div class="Polaris-ButtonGroup">
        <div class="Polaris-ButtonGroup__Item">
          <button class="Polaris-Button" type="button">
            <span class="Polaris-Button__Content">
              <span class="Polaris-Button__Text">Connect account</span>
            </span>
          </button>
        </div>
      </div>
</BannerNoty>

Banner Props

import BannerProps from "@/components/polaris/BannerProps.vue";
<BannerProps 
    v-if="userLevel == 3"
    titleBanner="Import CSV does not support the Free plan."
    tone="warning"
>
    <p>Import CSV are not available in your current plan. In order to use this feature you must 
        <router-link to="/settings/general?subscription=true" class="Polaris-Link Polaris-Link--monochrome">upgrade your plan</router-link>.</p>
</BannerProps>

Empty table

import TableEmpty from "@/components/polaris/TableEmpty.vue";

<TableEmpty 
    v-if="totalReview == 0 && loadReviewPage" 
    title="No review yet"
    subTitle="Try changing the filters or search term">
</TableEmpty>

Empty page

import Empty from "@/components/common/Empty.vue";

<Empty
    v-if="totalReview == 0 && loadReviewPage" 
    title="Add, import & manage customer reviews."
    subTitle="Add or import reviews from your social media into a single place. You'll be able to show them on your website and increase social proof.">

    <div class="Polaris-InlineStack" style="--pc-inline-stack-align:center;--pc-inline-stack-wrap:wrap;--pc-inline-stack-gap-xs:var(--p-space-200)">
    <a class="Polaris-Button" href="https://docs.ryviu.com/en/articles/1745004-import-reviews-to-shopify-and-prestashop-products" target="_blank" data-polaris-unstyled="true">
        <span class="Polaris-Button__Content">
        <span class="Polaris-Button__Text">Learn more</span>
        </span>
    </a>
    
    </div>
</Empty>

Modal Confirm

import ModalConfirm from "@/components/polaris/ModalConfirm.vue";

<button class="Polaris-ActionList__Item Polaris-ActionList--default" type="button" @click="deleteModal = true">
  <span class="Polaris-Button__Content">
    <span class="Polaris-Button__Text">{{$t('common.BTN_DELETE')}}</span>
  </span>
</button>

<ModalConfirm 
  v-if="deleteModal"
  :dialogVisible="deleteModal"
  @close="deleteModal = false"
  titleModal="Delete product"
  :subModal="`The product will be removed from the product list in the Ryviu Dashboard. This can’t be undone.`"
  >
  <div class="Ryviu-Footer-Modal-Polaris">
    <div class="Polaris-InlineStack" style="--pc-inline-stack-align: space-between; --pc-inline-stack-block-align: center; --pc-inline-stack-wrap: wrap; --pc-inline-stack-gap-xs: var(--p-space-400);">
      <div class="Polaris-Box"></div>
      <div class="Polaris-InlineStack" style="--pc-inline-stack-wrap: wrap; --pc-inline-stack-gap-xs: var(--p-space-200);">
          <button type="primary" class="Polaris-Button" @click="confirmModal = false">
            <span class="Polaris-Button__Content">
                <span class="Polaris-Button__Text">{{ $t('common.BTN_CANCEL') }}</span>
            </span>
          </button>
          <button :class="`Polaris-Button Polaris-Button--primary Polaris-Button--critical`"  @click="doRemove" v-loading="deleteModalLoading">
            <span class="Polaris-Button__Content">
              <span class="Polaris-Button__Text">Delete</span>
            </span>
          </button>
      </div>
    </div>
  </div>
</ModalConfirm>

Image

import Thumbnail from "@/components/polaris/Thumbnail.vue";
<Thumbnail :src="item.data.image_product" />