Skip to content

Instantly share code, notes, and snippets.

View mohdashraf010897's full-sized avatar
✌️
Collaborating

Mohd Ashraf mohdashraf010897

✌️
Collaborating
View GitHub Profile
<ReactiveBase
app="good-books-ds"
url="https://6a0ae3a3a8d4:6a3f508d-169b-4ed7-9680-20658120930f@appbase-demo-ansible-abxiydt-arc.searchbase.io"
:enableAppbase="true"
>
<h1>Hello from ReactiveBase 👋</h1>
</ReactiveBase>
<ReactiveBase
app="movies-demo-app"
url="https://81719ecd9552:e06db001-a6d8-4cc2-bc43-9c15b1c0c987@appbase-demo-ansible-abxiydt-arc.searchbase.io"
enableAppbase
theme={{
typography: {
fontFamily:
'-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Noto Sans", "Ubuntu", "Droid Sans", "Helvetica Neue", sans-serif',
fontSize: "16px",
},
<SearchBox
componentId="mainSearch"
dataField={["original_title", "original_title.search"]}
categoryField="genres.keyword"
className="search-bar"
queryFormat="and"
placeholder="Search for movies..."
iconPosition="left"
autosuggest={true}
filterLabel="search"
<ReactiveList
componentId="SearchResult"
data-field="original_title.raw"
:pagination="true"
:from="0"
:size="8"
:showResultStats="true"
:react="{ and: ['Ratings', 'Authors', 'search-box'] }"
:innerClass="{ list: 'books-container', poweredBy: 'appbase' }"
>
<ReactiveList
componentId="results"
:includeFields="['*']"
dataField="name.keyword"
:pagination="true"
:from="0"
:size="6"
:innerClass="{
list: 'result-list-container',
pagination: 'result-list-pagination',
<RangeSlider
dataField="stars_num"
componentId="stars"
title="Repo Stars"
:range="{
start: 0,
end: 300000
}"
:defaultSelected="{
start: 0,
<SearchBox
componentId="search-box"
iconPosition="right"
:dataField="[
'name',
'description',
'name.search',
'fullname',
'owner',
'topics',
<div slot="render" slot-scope="{ loading, error, data }">
<div v-if="loading">Fetching Results.</div>
<div v-if="Boolean(error)">
Something went wrong! Error details
{{ JSON.stringify(error) }}
</div>
<div v-bind:key="item._id" v-for="item in data">
<div key="{{item.name}}" class="result-item">
<div class="flex align-center result-card-header">
componentId="search-box"
iconPosition="right"
:dataField="[
'original_title',
'original_title.search',
'authors.search',
'authors.raw',
'authors.autosuggest',
'authors',
]"
<template>
<section class="container">
<ReactiveBase
app="gitxplore-app"
credentials="0f448043059d:a4264120-cd7a-4574-a449-2c5df0523cb1"
url="https://appbase-demo-ansible-abxiydt-arc.searchbase.io"
enableAppbase
>
</ReactiveBase>
</section>