-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1182 from hypersign-protocol/revert-1180-preview-v2
Revert "implemented"
- Loading branch information
Showing
4 changed files
with
212 additions
and
83 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
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
265 changes: 211 additions & 54 deletions
265
src/components/admin/createProjectSlider/components/PreviewConfig.vue
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 |
---|---|---|
@@ -1,58 +1,215 @@ | ||
<template> | ||
<div> | ||
<div> | ||
<Metrics | ||
@getLeaderBoard="fetchLeaderBoard" | ||
:leaderBoardData="leaderBoardData" | ||
:userScore="5" | ||
:totalEntries="eventData.investorsCount" | ||
:timeLeft=" | ||
(new Date(eventData.toDate).getTime() - | ||
new Date(eventData.fromDate).getTime()) / | ||
(1000 * 3600 * 24) | ||
" | ||
/> | ||
</div> | ||
<div> | ||
|
||
<Banner | ||
:eventName="eventData.projectName" | ||
:themeColor="eventData.themeColor" | ||
:fontColor="eventData.fontColor" | ||
:fromDate="new Date(eventData.fromDate).toLocaleString()" | ||
:toDate="new Date(eventData.toDate).toLocaleString()" | ||
:logoUrl="eventData.logoUrl" | ||
/> | ||
</div> | ||
<div> | ||
<draggable v-model="eventData.actions" > | ||
<b-list-group | ||
class="col md-7" | ||
v-for="action in eventData.actions" | ||
v-bind:Key="action._id" | ||
> | ||
<b-list-group-item class="col md-7" v-if="action.type!=='HYPERSIGN_AUTH'">{{action.title}}</b-list-group-item> | ||
|
||
|
||
</b-list-group> | ||
|
||
</draggable> | ||
{{eventActionList}} | ||
<div data-v-48af5828="" class="content-wrapper-not"> | ||
<div data-v-2b5cb8bb="" data-v-48af5828=""> | ||
<div | ||
data-v-2b5cb8bb="" | ||
tabindex="0" | ||
aria-label="Loading" | ||
class="vld-overlay is-active is-full-page" | ||
style="display: none" | ||
> | ||
<div class="vld-background" style="backdrop-filter: blur(2px)"></div> | ||
<div class="vld-icon"> | ||
<svg | ||
viewBox="0 0 38 38" | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="64" | ||
height="64" | ||
stroke="#000" | ||
> | ||
<g fill="none" fill-rule="evenodd"> | ||
<g transform="translate(1 1)" stroke-width="2"> | ||
<circle stroke-opacity=".25" cx="18" cy="18" r="18"></circle> | ||
<path d="M36 18c0-9.94-8.06-18-18-18"> | ||
<animateTransform | ||
attributeName="transform" | ||
type="rotate" | ||
from="0 18 18" | ||
to="360 18 18" | ||
dur="0.8s" | ||
repeatCount="indefinite" | ||
></animateTransform> | ||
</path> | ||
</g> | ||
</g> | ||
</svg> | ||
</div> | ||
</div> | ||
<div | ||
data-v-2b5cb8bb="" | ||
class="card mx-auto overflow-hidden mt-3 border-0" | ||
style="max-width: 600px" | ||
> | ||
<!----><!----> | ||
<div | ||
data-v-342cbee0="" | ||
data-v-2b5cb8bb="" | ||
class="row metrics-info border-bottom-0" | ||
authtoken="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiVmlrcmFtIEFuYW5kIiwiZW1haWwiOiJ2aWtyYW1iYW5hbmRAZ21haWwuY29tIiwiaWQiOiJkaWQ6aHM6OGUxNmY0ZmYtYTM3Ny00MmMyLTg2ODctZmZhZTJmNTRiZjkwIiwiaWF0IjoxNjUzNDcwMTc2LCJleHAiOjE2NTM5NTAxNzZ9.gRqcGztWDl3hScpoWLLcsMJgjO6e-tpZiqJ82IOBZPk" | ||
leaderboarddata="" | ||
> | ||
<div | ||
data-v-342cbee0="" | ||
class="border-right col-sm-3 col-md-3 col-3" | ||
> | ||
<div data-v-342cbee0="" class="py-4"> | ||
<div data-v-342cbee0="" class="number">5</div> | ||
<div data-v-342cbee0="" class="text">Your Score</div> | ||
</div> | ||
</div> | ||
<div | ||
data-v-342cbee0="" | ||
class="border-right col-sm-3 col-md-3 col-3" | ||
> | ||
<div data-v-342cbee0="" class="py-4"> | ||
<div data-v-342cbee0="" class="number">1</div> | ||
<div data-v-342cbee0="" class="text">Total Users</div> | ||
</div> | ||
</div> | ||
<div | ||
data-v-342cbee0="" | ||
class="border-right col-sm-3 col-md-3 col-3" | ||
> | ||
<div data-v-342cbee0="" class="py-4"> | ||
<div data-v-342cbee0="" class="number">6</div> | ||
<div data-v-342cbee0="" class="text">Days Left</div> | ||
</div> | ||
</div> | ||
<div data-v-342cbee0="" class="col-sm-3 col-md-3 col-3"> | ||
<div data-v-342cbee0="" class="py-4"> | ||
<div data-v-342cbee0="" class="number"> | ||
<i data-v-342cbee0="" class="fas fa-table"></i> | ||
</div> | ||
<div data-v-342cbee0="" class="text">Leaderboard</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div data-v-28dfe7a4="" data-v-2b5cb8bb="" class="row"> | ||
<div data-v-28dfe7a4="" class="col-md-12"> | ||
<div data-v-28dfe7a4="" class="card banner rounded-0"> | ||
<!----><!----><img | ||
data-v-28dfe7a4="" | ||
src="https://huddle-frontend-assets.s3.amazonaws.com/revamp/Web3NativeZoom/Banner.png" | ||
/><!----><!----><!----> | ||
</div> | ||
</div> | ||
</div> | ||
<!----><!----><!----> | ||
</div> | ||
<!----> | ||
<div | ||
data-v-2b5cb8bb="" | ||
role="tablist" | ||
class="accordion mt-3 mx-auto overflow-hidden" | ||
style="max-width: 600px" | ||
> | ||
<div | ||
tabindex="0" | ||
aria-label="Loading" | ||
class="vld-overlay is-active is-full-page" | ||
style="display: none" | ||
> | ||
<div | ||
class="vld-background" | ||
style="backdrop-filter: blur(2px)" | ||
></div> | ||
<div class="vld-icon"> | ||
<svg | ||
viewBox="0 0 38 38" | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="64" | ||
height="64" | ||
stroke="#000" | ||
> | ||
<g fill="none" fill-rule="evenodd"> | ||
<g transform="translate(1 1)" stroke-width="2"> | ||
<circle | ||
stroke-opacity=".25" | ||
cx="18" | ||
cy="18" | ||
r="18" | ||
></circle> | ||
<path d="M36 18c0-9.94-8.06-18-18-18"> | ||
<animateTransform | ||
attributeName="transform" | ||
type="rotate" | ||
from="0 18 18" | ||
to="360 18 18" | ||
dur="0.8s" | ||
repeatCount="indefinite" | ||
></animateTransform> | ||
</path> | ||
</g> | ||
</g> | ||
</svg> | ||
</div> | ||
</div> | ||
<div data-v-02cd513d="" class="card action-wrap"> | ||
<!----><!----> | ||
<div | ||
data-v-02cd513d="" | ||
aria-expanded="true" | ||
aria-controls="profile" | ||
class="card-header" | ||
> | ||
<div data-v-02cd513d="" class="row"> | ||
<div data-v-02cd513d="" class="col-sm-1 col-md-1 col-1"> | ||
<img | ||
data-v-02cd513d="" | ||
src="/img/person-fill.8ae51993.svg" | ||
height="25px" | ||
/> | ||
</div> | ||
<div | ||
data-v-02cd513d="" | ||
class="text-left col-sm-9 col-md-9 col-9" | ||
> | ||
<div data-v-02cd513d="" class="text"> | ||
Your Profile & Referral | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div data-v-02cd513d="" id="profile" class="collapse show"> | ||
<div data-v-02cd513d="" class="card-body user-details"> | ||
<!----><!----> | ||
<div data-v-02cd513d="" class="row"> | ||
<div data-v-02cd513d="" class="col-sm-3 col-md-3 col-12"> | ||
<div data-v-02cd513d="" class="title text-left mb-1"> | ||
Username | ||
</div> | ||
<div data-v-02cd513d="" class="text text-left"> | ||
Vikram Anand | ||
</div> | ||
</div> | ||
<div data-v-02cd513d="" class="col-sm-4 col-md-4 col-12"> | ||
<div data-v-02cd513d="" class="title text-left mb-1"> | ||
</div> | ||
<div data-v-02cd513d="" class="text text-left"> | ||
vi**********.com | ||
</div> | ||
</div> | ||
<div data-v-02cd513d="" class="col-sm-5 col-md-5 col-12"> | ||
<div data-v-02cd513d="" class="title text-left mb-1"> | ||
Your Referral Link | ||
</div> | ||
<div data-v-02cd513d="" class="text text-left"> | ||
https:// ... LmNvbQ== | ||
<span data-v-02cd513d="" class="copy" | ||
><i data-v-02cd513d="" class="far fa-copy"></i | ||
></span> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<!----><!----> | ||
</div> | ||
<!----> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import Banner from "../../../participant/Banner.vue"; | ||
import Metrics from "../../../participant/Metrics.vue"; | ||
import draggable from 'vuedraggable' | ||
export default { | ||
name: "PreviewConfig", | ||
props: { | ||
eventData: { | ||
type: Object, | ||
}, | ||
}, | ||
components: { Banner, Metrics ,draggable}, | ||
}; | ||
</script> | ||
</template> |
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