forked from hotwax/company
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented: UI of the shopify connections list page (hotwax#4)
- Loading branch information
1 parent
b7f2f1c
commit 5e6558f
Showing
5 changed files
with
164 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<template> | ||
<ion-content> | ||
<ion-list> | ||
<ion-list-header> | ||
{{ "<shopifyShopName>" }} | ||
</ion-list-header> | ||
<ion-item button> | ||
<ion-label>{{ translate("Copy credentials") }}</ion-label> | ||
<ion-icon :icon="copyOutline" slot="end" /> | ||
</ion-item> | ||
<ion-item button> | ||
<ion-label>{{ translate("Favorite") }}</ion-label> | ||
<ion-icon :icon="star" slot="end" /> | ||
</ion-item> | ||
<ion-item button lines="none"> | ||
<ion-label color="danger">{{ translate("Deactivate shop") }}</ion-label> | ||
<ion-icon :icon="unlinkOutline" color="danger" slot="end" /> | ||
</ion-item> | ||
</ion-list> | ||
</ion-content> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { IonContent, IonIcon, IonItem, IonLabel, IonList, IonListHeader } from "@ionic/vue"; | ||
import { translate } from '@hotwax/dxp-components' | ||
import { copyOutline, star, unlinkOutline } from 'ionicons/icons' | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
<template> | ||
<ion-page> | ||
<FacilityFilters content-id="filter-content" /> | ||
|
||
<ion-header :translucent="true"> | ||
<ion-toolbar> | ||
<ion-title>{{ translate("Shopify connections") }}</ion-title> | ||
<ion-buttons slot="end" > | ||
<ion-menu-button menu="end" class="mobile-only"> | ||
<ion-icon :icon="filterOutline" /> | ||
</ion-menu-button> | ||
<ion-button slot="icon-only"> | ||
<ion-icon :icon="informationCircleOutline" /> | ||
</ion-button> | ||
</ion-buttons> | ||
</ion-toolbar> | ||
</ion-header> | ||
|
||
<ion-content id="filter-content"> | ||
<div class="find"> | ||
<section class="search"> | ||
<ion-searchbar :placeholder="translate('Search keys')" /> | ||
</section> | ||
|
||
<aside class="filters"> | ||
<ion-list> | ||
<ion-item lines="none"> | ||
<ion-icon :icon="flashOutline" slot="start" /> | ||
<ion-toggle>{{ translate("Show active shops") }}</ion-toggle> | ||
</ion-item> | ||
</ion-list> | ||
</aside> | ||
|
||
<main> | ||
<div class="list-item"> | ||
<ion-item lines="none"> | ||
<ion-icon slot="start" :icon="storefrontOutline" /> | ||
<ion-label class="ion-text-wrap"> | ||
{{ "Shop ID" }} | ||
<p>{{ "Shop connection name" }}</p> | ||
</ion-label> | ||
</ion-item> | ||
|
||
<div class="tablet"> | ||
<ion-chip outline> | ||
<ion-label>{{ translate("Shopify link") }}</ion-label> | ||
<ion-icon :icon="openOutline" color="primary"/> | ||
</ion-chip> | ||
</div> | ||
|
||
<div class="tablet"> | ||
<ion-label class="ion-text-center"> | ||
{{ "<product store name>" }} | ||
<p>{{ "product store" }}</p> | ||
</ion-label> | ||
</div> | ||
|
||
<ion-button fill="clear" color="medium" @click="openShopifyShopActionsPopover($event)"> | ||
<ion-icon slot="icon-only" :icon="ellipsisVerticalOutline" /> | ||
</ion-button> | ||
</div> | ||
<div class="list-item"> | ||
<ion-item lines="none"> | ||
<ion-icon slot="start" :icon="storefrontOutline" /> | ||
<ion-label class="ion-text-wrap"> | ||
{{ "Shop ID" }} | ||
<p>{{ "Shop connection name" }}</p> | ||
</ion-label> | ||
</ion-item> | ||
|
||
<div class="tablet"> | ||
<ion-chip outline> | ||
<ion-label>{{ translate("Shopify link") }}</ion-label> | ||
<ion-icon :icon="openOutline" color="primary"/> | ||
</ion-chip> | ||
</div> | ||
|
||
<div class="tablet"> | ||
<ion-label class="ion-text-center"> | ||
{{ "<product store name>" }} | ||
<p>{{ "product store" }}</p> | ||
</ion-label> | ||
</div> | ||
|
||
<ion-button fill="clear" color="medium" @click="openShopifyShopActionsPopover($event)"> | ||
<ion-icon slot="icon-only" :icon="ellipsisVerticalOutline" /> | ||
</ion-button> | ||
</div> | ||
</main> | ||
</div> | ||
</ion-content> | ||
</ion-page> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { IonButton, IonButtons, IonChip, IonContent, IonFab, IonFabButton, IonHeader, IonIcon, IonItem, IonLabel, IonList, IonMenuButton, IonPage, IonSearchbar, IonTitle, IonToggle, IonToolbar, popoverController } from "@ionic/vue"; | ||
import { ellipsisVerticalOutline, filterOutline, flashOutline, informationCircleOutline, openOutline, storefrontOutline } from "ionicons/icons"; | ||
import { translate } from "@/i18n"; | ||
import ShopifyShopActionsPopover from "@/components/ShopifyShopActionsPopover.vue"; | ||
async function openShopifyShopActionsPopover(event: Event) { | ||
const popover = await popoverController.create({ | ||
component: ShopifyShopActionsPopover, | ||
event, | ||
showBackdrop: false | ||
}); | ||
popover.present() | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
.list-item { | ||
--columns-desktop: 5; | ||
border-bottom: var(--border-medium); | ||
} | ||
.list-item > ion-item { | ||
width: 100%; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters